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

Mehr
2 Monate 1 Tag her #173789 von sharky
sharky erstellte das Thema Is it possible to change the EndURL based on a queryString or a referrerURL?
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

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 1 Tag her #173791 von jelo
jelo antwortete auf das Thema: Is it possible to change the EndURL based on a queryString or a referrerURL?
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.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
Folgende Benutzer bedankten sich: DenisChenu

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Monate 1 Tag her #173836 von holch
holch antwortete auf das Thema: Is it possible to change the EndURL based on a queryString or a referrerURL?
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

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha