Welcome to the LimeSurvey Community Forum

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

Redirect to New Survey

  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 1 week ago #183122 by teracomp
Redirect to New Survey was created by teracomp
I have two old surveys that I've updated, but the old survey URLs are still used (occasionally). To address this issue, I set the relevance equations to 0 on all of the groups and changed the Welcome page to point them to the most recent version of the surveys.

While this works, it leaves me with a survey that's dormant.
  • If I expire the survey, the user is prompted with: "Survey Expired. Thank you for your support. We are evaluating the Validation Survey at this time."
  • If I deactivate the survey, the users see "Error. We are sorry but you don't have permissions to do this."
  • And, of course, if I delete the survey, the users get a 404 response.

Is there a method to capture the 404 page and redirect the user to something that gives them logical choices?

Thanks again for your incredible support.

Dave Phillips
The topic has been locked.
More
5 years 1 week ago #183123 by jelo
Replied by jelo on topic Redirect to New Survey
You will need to have the survey activated to have EndURL or quota redirection working.

Or open a new feature request. I had the idea to have a maintenance mode per survey.
bugs.limesurvey.org/view.php?id=10038#c36753

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: teracomp
The topic has been locked.
  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 1 week ago #183124 by teracomp
Replied by teracomp on topic Redirect to New Survey
The EndURL sounds like a better idea than the one I currently have in place. I should be able to point them directly to the new survey. Worst case, a few clicks.

The only downside is the survey remains active in my list of surveys. I'm just trying to clean house to reduce admin overhead...and potential mistakes.

The Maintenance Mode is interesting, but like an Expired survey, it still doesn't remove the survey from my admin panel.

I was hoping for a 404 trap somewhere (e.g., WordPress, etc.), perhaps a configuration property that would be managed at the server instance level. Something like, if 404, redirect to a page that detects the source and offers some options.

Dave Phillips
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #183128 by DenisChenu
Replied by DenisChenu on topic Redirect to New Survey

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: teracomp
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago - 5 years 1 week ago #183134 by holch
Replied by holch on topic Redirect to New Survey
Why not redirect the old survey URL via .htaccess to the new survey URL? Then you can delete the old survey and anyone who opens the old URL will be automatically redirected to the new one.

Yes, you have to manually adapt the htaccess, but I think it is the cleantest solution. But maybe there is something that I did not think through completely. I am sure in this case Jelo and Denis will let you know. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 5 years 1 week ago by holch.
The following user(s) said Thank You: teracomp
The topic has been locked.
  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 1 week ago #183136 by teracomp
Replied by teracomp on topic Redirect to New Survey
htaccess is definitely a great solution and perhaps the best idea. I just have to be really smart about capturing the url properly.

Thanks for all the ideas. This is really helpful!

Dave Phillips
The topic has been locked.
More
5 years 1 week ago #183137 by jelo
Replied by jelo on topic Redirect to New Survey

holch wrote: Why not redirect the old survey URL via .htaccess to the new survey URL?

Because you will forget about the redirection ;-) The next update of Limesurvey might overwrite it.

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, teracomp
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #183138 by holch
Replied by holch on topic Redirect to New Survey
OK, makes sense. I had somehow read it as it is a new and a old installation. I re-read the post and the is no indication that this is the case.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: teracomp
The topic has been locked.
  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 1 week ago #183184 by teracomp
Replied by teracomp on topic Redirect to New Survey
Thanks to an amazing team for quick responses. I chose to implement the end_url Jelo suggested.

Here are some details that made this work for me:
  1. Deleted all the Description text
  2. Set "Show Welcome" to off
  3. Set Relevance to 0 for all question groups
  4. Set the end_url to the new version of the survey
  5. Finally, I updated the title to reflect the old version

I tested the results by pointing to the old survey. The redirect was completely transparent. Perfect!

Dave Phillips
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose