View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|08239||Feature requests||Survey taking||public||2013-10-05 13:23||2021-11-25 10:00|
|Summary||08239: Allow for user friendly survey URLS|
|Description||At the moment surveys are published under a relatively complicated url eg. [survey.myserver.com]/index.php/984639/lang-en.|
These urls are hard to remember or to transmit to a potential participant (e.g. via telephone or a flyer)
I would like to see a "short-url" setting in the survey settings where one could set a string under which the survey is published.
For example, if the short survey-url is set to "greatsurvey", you could reach it via [survey.myserver.com]/greatsurvey.
Hi mfaver, you can have:
example.org/123564 for url (if you deactivate showScript in config).
But yes : a plugin to have "Little url" can be a good idea
remind the config problem : then
- index.php/lilurl : path + showScript
- /lilurl : path - showscript
- /index.php?r=lilurl (get+showscript : need testing)
- /?r=lilurl (get - showscript : need testing).
Thanks for the hint and your input!
There's another reason for being able to choose your own URL: If you have given the link to some participants (aaa.com/123456) and now you want to change the survey, the link will change.
With a user url (aaa.com/greatsurvey) you can change the underlying survey and your participants still find it.
+1 for a user selectable short url ;)
Sometimes i use htaccess directly for this ;)
oh, ok, so you can just use a
redirect /aaa.com/limesurvey/123456 /aaa.com/limesurvey/654321
and limesurvey is ok with it?
Cool! Again thanks for the hint :)
Maybe we can do like that, but more like this:
redirect /mylilurl /index.php/survey/676767
Or that to in www.example.org
redirect /survey http://survey.example.org/index.php/survey/76767
Think your metho is OK too :)
Hmmm...I'll leave this one open because it would be nice to have control over the url via LS interface.
But because of your solution it now has a very, very....very low priority :)
"+1 for a user selectable short url" - I agree.
I would also like to see the capability of assigning an "alias" for the survey.
I also currently use .htaccess redirects but it's just one more level of complexity.
This would be great to have as a feature. Of course, manually redirecting is okay too, but requires a system administrator to set up. Native support in LimeSurvey would be really handy.
Example survey "Opinion Survey 2014-1" with the alias "opinion":
or without an alias:
@jonsen : not really duplicate, i think .
/sid/12345/token/test1234/lang/en : /shoturl
/sid/12345/token/test1234/lang/en : /shoturl/token/test1234/lang/en
|+1 for short URLs!|
Think short url can be only for surveyid OR surveyid + lang.
Not for token and/or for newtest.
Last edited: 2021-11-25 10:00
well... the frontend url is analyzed by procedural code ( in controller/survey/index.php and in SurveyRuntimeHelper)
so it should not be that hard to do.
I think it can be done currently with a beforeControllerAction event if beforeControllerAction happened before 404 …
Because by default /mysurvey send a 404 …
I even once started looking at how to implement this
+1 for an option of short URLs in place of surveyid's, which probably would benefit a lot of users :)
Since I have only english as the language I have removed the language parameter manually in surveySummary_view.php and with having ShowScriptName disabled my survey urls only include the survey ID, which is already a lot better then the default. But short urls look better in emails and of course can be easier remembered when promoting verbally :)
I think though redirects would be better used for the original url (with sid) / previous changed short urls, so the survey remains reachable that way but the current short url remains visible in the browser address bar when visited.
btw. I think this is a duplicate of https://bugs.limesurvey.org/view.php?id=7538
For plugin : beforeControllerAction : since controller/action are done like this
r=controller/action : get the controller : test if in little url DB, if yes : redirect.
Can be done in plugin.
Without rewrite mode : you need /index.php?r=litleurl
|Plus one from me, providing surveys to schools and medical institutions so shorter in all cases is better. Many reasons, one being firewalls love breaking long urls in emails and not all users are aware of how to fix them.|
|@c_schmitz/@f_funke, this is a good example of a feature which would benefit from a better feature tracker. Not only allowing users to vote would be helpful but also checking for duplicates (see relationships added to this ticket).|
A simple fix for this would be:
If survey title is unique, create url from title instead of survey id.
Else, create url from id.
I guess users don't usually make surveys with same titles as they are ambiguous, so this fix will match many use cases.
2 years since last comment from assigned person LouisGac.
Any update on this? Shouldn't be unassigned if no one is working on this?
I like the idea of using the survey title. It is very similar to how Wordpress creates SEO friendly page URLs.
@cdorin, is there a list of feature for future Limesurvey 4.x features? This would be worth adding.
|I suggest having a separate field. Mostly because for administration purposes the name often contains some technical info eg. date references, project numbers, client names etc that you might not want visible or what is simply irrelevant. It should be a unique url-friendly (no spaces etc) value that would use SID by default or some other defined value.|
I suggest to do it on an external way ...
Think beforeControlleraction can be used , **need** mod_rewrite or similar
|2013-10-05 13:23||mfaber||New Issue|
|2013-10-07 09:31||DenisChenu||Note Added: 26567|
|2013-10-07 09:31||DenisChenu||Severity||@50@ => feature|
|2013-10-07 10:43||mfaber||Note Added: 26568|
|2013-10-07 10:44||DenisChenu||Note Added: 26569|
|2013-10-07 12:35||mfaber||Note Added: 26574|
|2013-10-07 12:38||DenisChenu||Note Added: 26575|
|2013-10-07 13:22||mfaber||Note Added: 26577|
|2013-10-08 15:56||tpartner||Note Added: 26630|
|2014-05-27 23:26||jonsen||Note Added: 30026|
|2014-05-27 23:41||jonsen||Note Added: 30027|
|2014-06-23 12:59||DenisChenu||Relationship added||parent of 09111|
|2014-06-23 12:59||DenisChenu||Relationship deleted||parent of 09111|
|2014-06-23 12:59||DenisChenu||Relationship added||child of 09111|
|2014-06-23 13:02||DenisChenu||Note Added: 30207|
|2014-06-23 13:02||DenisChenu||Note Edited: 30207||View Revisions|
|2014-06-24 10:41||Mazi||Note Added: 30221|
|2014-06-26 08:16||DenisChenu||Note Added: 30231|
|2015-11-09 18:44||DenisChenu||Relationship added||has duplicate 07834|
|2018-04-26 00:08||guest||Note Added: 47523|
|2018-04-26 00:23||guest||Note Added: 47524|
|2018-04-26 02:30||guest||Note Added: 47525|
|2018-04-26 02:55||guest||Note Added: 47526|
|2018-04-26 03:22||guest||Note Added: 47527|
|2018-04-26 05:03||guest||Note Added: 47528|
|2018-04-26 05:24||guest||Note Added: 47529|
|2018-04-26 05:26||guest||Note Added: 47530|
|2018-04-26 05:55||guest||Note Added: 47531|
|2018-04-26 06:31||guest||Note Added: 47532|
|2018-04-26 06:58||guest||Note Added: 47533|
|2018-04-26 08:35||guest||Note Added: 47534|
|2018-04-26 08:36||guest||Note Added: 47535|
|2018-04-26 08:45||guest||Note Added: 47536|
|2018-04-26 09:52||guest||Note Added: 47539|
|2018-04-26 10:12||guest||Note Added: 47540|
||Note Added: 47627|
||Assigned To||=> LouisGac|
||Status||new => assigned|
|2018-08-31 16:36||jelo||Relationship added||related to 13836|
|2018-08-31 17:05||DenisChenu||Note Added: 48926|
|2018-09-03 09:49||TonisOrmisson||Note Added: 48932|
|2019-02-28 11:23||markusd1984||Note Added: 50701|
|2019-02-28 11:23||markusd1984||Issue Monitored: markusd1984|
|2019-02-28 14:13||DenisChenu||Note Added: 50702|
|2019-09-16 11:18||Indispirit||Note Added: 53581|
|2019-09-16 11:38||Mazi||Note Added: 53582|
|2020-03-15 13:37||cdalexndr||Note Added: 56555|
|2020-03-15 13:37||cdalexndr||Issue Monitored: cdalexndr|
|2020-03-15 14:08||cdalexndr||Note Added: 56556|
|2020-03-15 20:22||DenisChenu||Assigned To||LouisGac =>|
|2020-03-15 20:23||DenisChenu||Status||assigned => new|
|2020-03-16 21:43||Mazi||Note Added: 56583|
|2020-03-17 08:38||TonisOrmisson||Note Added: 56588|
|2020-03-17 09:00||DenisChenu||Note Added: 56589|
|2020-03-17 09:24||c_schmitz||Tag Attached: roadmap2020|
|2021-11-25 10:00||galads||Assigned To||=> galads|
|2021-11-25 10:00||galads||Status||new => assigned|
|2021-11-25 11:53||guest||Bug heat||30 => 36|