Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

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

  • sharky
  • sharky's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months 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
The topic has been locked.
More
5 years 7 months 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
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months 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 answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose