- Posts: 162
- Thank you received: 14
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Redirect to New Survey
- teracomp
- Topic Author
- Offline
- Elite Member
Less
More
5 years 1 week ago #183122
by teracomp
Dave Phillips
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.
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.
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 1 week ago #183123
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
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
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 14
5 years 1 week ago #183124
by teracomp
Dave Phillips
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13620
- Thank you received: 2488
5 years 1 week ago #183128
by DenisChenu
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.
Replied by DenisChenu on topic Redirect to New Survey
I think you can use
github.com/LimeSurvey/LimeSurvey/blob/35...yout_errors.twig#L57
to check this
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2738
5 years 1 week ago - 5 years 1 week ago #183134
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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.
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 14
5 years 1 week ago #183136
by teracomp
Dave Phillips
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!
Thanks for all the ideas. This is really helpful!
Dave Phillips
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 1 week ago #183137
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Redirect to New Survey
Because you will forget about the redirection The next update of Limesurvey might overwrite it.holch wrote: Why not redirect the old survey URL via .htaccess to the new survey URL?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2738
5 years 1 week ago #183138
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 14
5 years 1 week ago #183184
by teracomp
Dave Phillips
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:
I tested the results by pointing to the old survey. The redirect was completely transparent. Perfect!
Here are some details that made this work for me:
- Deleted all the Description text
- Set "Show Welcome" to off
- Set Relevance to 0 for all question groups
- Set the end_url to the new version of the survey
- 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.