View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
16349Feature requestsExpression Managerpublic2023-02-23 13:07
ReporterMazi Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary16349: Missing placeholder for Limesurvey path
Description

Often you are linking custom scripts within a survey, the end message or the end URL. The problem is that when using a test system e.g. on your servers and a live system, the URLs differ. Of course, this applies for full URLs but also relative URLs cause a problem. Example:
At our test systems we use a subdomain like whotest.my-survey.host while the customer uses a URL like "my-domain.com/limesurvey. So the paths differ and URLs always have to be adjusted.

Having a placeholder similar to the old {TEMPLATEURL} would help a lot. So can we have something like {LIMESURVEYURL} which shows the systems full path like whotest.my-survey.host or my-domain.com/limesurvey?

TagsNo tags attached.
Bug heat4
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2020-05-31 13:17

updater   ~58119

@DenisChenu, how do you deal wiith this?

DenisChenu

DenisChenu

2020-06-01 08:34

developer   ~58121

You mean in model ?

In survey ? You re right : we need a {ROOTURL} {RESSOURCEURL} and {TEMPLATEURL}

Mazi

Mazi

2023-02-23 11:47

updater   ~73938

@DenisChenu, I think there still is no solution yet?

We are facing this problem at various situations. Most simply one is sending a link to a custom report by email. The report is a new module or plugin. But if we switch from test to live system, we always have to adjust the Limesurvey URL.
A simply {ROOTURL} placeholder or the like would be very helpful.

DenisChenu

DenisChenu

2023-02-23 12:05

developer   ~73939

Why not a generateUrl EM functiln un core plugins ?

Mazi

Mazi

2023-02-23 13:07

updater   ~73940

Could also be an option. We had a similar ticket for SEED, see https://bugs.limesurvey.org/view.php?id=14445 and this commit: https://github.com/LimeSurvey/LimeSurvey/commit/011890d128084176074421cbe82cdd342706f729#diff-bccf0f511c5328f1ef2c78b92305646a

Issue History

Date Modified Username Field Change
2020-05-31 13:17 Mazi New Issue
2020-05-31 13:17 Mazi Note Added: 58119
2020-06-01 08:34 DenisChenu Note Added: 58121
2023-02-23 11:47 Mazi Note Added: 73938
2023-02-23 12:05 DenisChenu Note Added: 73939
2023-02-23 13:07 Mazi Note Added: 73940