End redirect is not working on mobile version of ubuntu orange template

More
4 months 1 week ago #163785 by DanielVN
DanielVN created the topic: End redirect is not working on mobile version of ubuntu orange template
Hi,

I have a study which is running on ubuntu orange template and i'm currently using lime version 2.73. Once the respondent finishes the questionnaire it redirected via the script below:

<script>
(function() {
var sid = '{SID}', token = '{TOKEN}', lang = 'bg', status = 'COMPLETED';
window.location.href = " vnmarketresearch.eu/insite.php?points=7&sid= " + sid + '&token=' + token + '&lang=' + lang + '&status=' + status;

})();
</script>

to end page with short description where he is notified about the incentive that he will receive.

This is working properly when I have tested on my laptop and tablet via Chrome, but when I have tested it on my mobile devices (htc10 and huawei) the redirected didn't worked (i have my Javascript enabled on my mobile browser).

Could you please advise if this is something related to the template (i assume that this might be connected wit the mobile version of the template)?

Thank you very much in advance.

Best regards
Daniel

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #163786 by jelo
jelo replied the topic: End redirect is not working on mobile version of ubuntu orange template

DanielVN wrote: This is working properly when I have tested on my laptop and tablet via Chrome, but when I have tested it on my mobile devices (htc10 and huawei) the redirected didn't worked (i have my Javascript enabled on my mobile browser).

You should state the browsers used on the mobile devices. Redirection is getting more and more limited. I don't think the "mobile mode" of the theme is the issue.

Is the LimeSurvey installation on the same domain as the redirection target?

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #163791 by DanielVN
DanielVN replied the topic: End redirect is not working on mobile version of ubuntu orange template
Hi,

Thank you very much for your quick feedback.

Regarding the mobile browser i was using Chrome as well to test.

The limesurvey installation is on the same target as the redirect. The redirect is actually pointing to the same survey and the purpose of the redirect script is to assign status of the respondent and to incentive the respondent.

My assumption for the mobile mode is due to the fact that the redirect is working properly on both tablet and laptop when the non mobile version is loaded.

Thank you.

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #163793 by holch
holch replied the topic: End redirect is not working on mobile version of ubuntu orange template
why don't you use the Limesurvey Endurl feature with automatic redirect? What happens if you use this?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #163798 by jelo
jelo replied the topic: End redirect is not working on mobile version of ubuntu orange template
[quote="DanielVN" post=163791The redirect is actually pointing to the same survey.[/quote]insite.php isn't looking like a limesurvey part? What is the content of insite.php?

What exactly happens in the chrome browser on the mobile devices? Error message? URL rewritten?
My approach would be to check it with different browsers on the mobile devices first.
Then I would check if redirection to a simple URL is working.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!