Redirect to New Survey

More
2 months 2 weeks ago #183122 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

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

LimeSurvey Partners
More
2 months 2 weeks 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

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

More
2 months 2 weeks 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

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

More
2 months 2 weeks 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 .
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: teracomp

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

More
2 months 2 weeks ago - 2 months 2 weeks 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'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
Last edit: 2 months 2 weeks ago by holch.
The following user(s) said Thank You: teracomp

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

More
2 months 2 weeks 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

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

More
2 months 2 weeks 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

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

More
2 months 2 weeks 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'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
The following user(s) said Thank You: teracomp

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

More
2 months 2 weeks 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

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!