Is it possible to change the EndURL based on a queryString or a referrerURL?

More
10 months 4 days ago #173789 by sharky
I am trying to redirect back to the page the user was before they got to the survey. Is this possible to do at all, I know there is an endURL parameter available in the edit survey options. However it needs to be dynamic as each user approaching this page will come from a different place. Just want to send them back to where they came from after they finish LimeSurvey

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

LimeSurvey Partners
More
10 months 4 days ago #173791 by jelo
The referrer might be saved by LimeSurvey in the responses, but I'm not aware of a way to access this data during the survey.

A workaround via Javascript (document.referrer;) seems not possible, if the first page is not a question page (if you display a data policy screen and/or a welcome screen, the referrer is lost).

A script which is redirecting to the LimeSurvey might be able to encode the referrer into a URL parameter, which could be decoded in LimeSurvey.

Let's assume someone provides a solution, there still is a issue.
The referrer is often blocked by browser or third-party security tools.
Personally I would no longer assume that a referrer is accessible.

If you have e.g. a few places, where the URL to the survey is places, I would suggest using a URL parameter where the location is coded.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu

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

More
10 months 4 days ago #173836 by holch
My experience is that the referrer is often not transmitted. So the redirecting part is actually easy. The problem is how to get the referrer into the database AND like Jelo highlighted, out of the database.

How do you record the referrer?

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.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!