View Issue Details

IDProjectCategoryView StatusLast Update
08239Feature requests[All Projects] Survey takingpublic2019-02-28 14:13
ReportermfaberAssigned ToLouisGac 
PrioritynormalSeverityfeature 
Status assignedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary08239: 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.

TagsNo tags attached.

Relationships

has duplicate 07834 closedDenisChenu Feature Request - Short tag for every survey 
related to 13836 new Possibility to alias survey ids 
child of 09111 closedDenisChenu Better url (shortest) 

Activities

DenisChenu

DenisChenu

2013-10-07 09:31

developer   ~26567

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).

Denis

mfaber

mfaber

2013-10-07 10:43

reporter   ~26568

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 ;)

DenisChenu

DenisChenu

2013-10-07 10:44

developer   ~26569

Hi,

Sometimes i use htaccess directly for this ;)

mfaber

mfaber

2013-10-07 12:35

reporter   ~26574

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 :)

DenisChenu

DenisChenu

2013-10-07 12:38

developer   ~26575

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 :)

mfaber

mfaber

2013-10-07 13:22

reporter   ~26577

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 :)
Thanks again,
M

tpartner

tpartner

2013-10-08 15:56

developer   ~26630

"+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.

jonsen

jonsen

2014-05-27 23:26

reporter   ~30026

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":

OLD:
https://example.org/lime/index.php/survey/index/sid/12345/token/test1234/lang/en

NEW:
https://example.org/survey/opinion/test1234/en
or without an alias:
https://example.org/survey/12345/test1234/en

jonsen

jonsen

2014-05-27 23:41

reporter   ~30027

Duplicate? http://bugs.limesurvey.org/view.php?id=5621

DenisChenu

DenisChenu

2014-06-23 13:02

developer   ~30207

Last edited: 2014-06-23 13:02

View 2 revisions

@jonsen : not really duplicate, i think .

The other
/sid/12345/token/test1234/lang/en : /shoturl

This one:
/sid/12345/token/test1234/lang/en : /shoturl/token/test1234/lang/en

Mazi

Mazi

2014-06-24 10:41

partner   ~30221

+1 for short URLs!

DenisChenu

DenisChenu

2014-06-26 08:16

developer   ~30231

Think short url can be only for surveyid OR surveyid + lang.

Not for token and/or for newtest.

LouisGac

LouisGac

2018-05-16 12:49

manager   ~47627

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.

DenisChenu

DenisChenu

2018-08-31 17:05

developer   ~48926

I think it can be done currently with a beforeControllerAction event if beforeControllerAction happened before 404 …

Because by default /mysurvey send a 404 …

@LouisGac : i'm OK with you, not an easy task, but not needed in frontend helper if you use a redirect.

TonisOrmisson

TonisOrmisson

2018-09-03 09:49

developer   ~48932

+1
I even once started looking at how to implement this

markusd1984

markusd1984

2019-02-28 11:23

reporter   ~50701

+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

DenisChenu

DenisChenu

2019-02-28 14:13

developer   ~50702

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

Issue History

Date Modified Username Field Change
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
2018-05-16 12:49 LouisGac Note Added: 47627
2018-05-16 12:49 LouisGac Assigned To => LouisGac
2018-05-16 12:49 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 14:13 DenisChenu Note Added: 50702