Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

replacement & to & in End URL

More
8 years 6 months ago - 8 years 6 months ago #127552 by volya
replacement & to & in End URL was created by volya
Hello!

I want to use custom End URL in my survey. I use the hidden text variable retUrl and url to my survey looks like

mylimesurvey.com/index.php?r=survey/inde...%26token%3dblablabla

In the database I can see values of retUrl - they are fine - http://myhost/api/v1/profilefinished/?profileid=1010475&token=blablabla

End Url in survey setup is {retUrl}. Everything fine, but when I complete my survey, I've got following url in browser - http://myhost/api/v1/profilefinished/?profileid=1010475&_amp_;token=blablabla (&_amp_; in reality comes without _)

What should I do to avoid replacing the & to &_amp_;?

I can use two hidden variables - profileid and token and construct End Url from them. But it's not comfortable for me. I want to use single variable with full return url.

Thank you for any advise!
Last edit: 8 years 6 months ago by volya.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 6 months ago #127563 by gabrieljenik
Replied by gabrieljenik on topic replacement & to & in End URL
Where are you typing the EndUrl? At survey level, on the text elements screen, right?
Can you paste a screenshot showing the screen where you type your endurl?

Thanks

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
More
8 years 6 months ago #127580 by volya
Replied by volya on topic replacement & to & in End URL
Yes, at survey level. Here is screenshot

https://cloud.mail.ru/public/LXm9/VRUWuDHrS
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 6 months ago #127581 by gabrieljenik
Replied by gabrieljenik on topic replacement & to & in End URL
The "&" is being expanded to "&" when the variable retUrl is tailored.
You should do as you say: use two hidden variables - profileid and token and construct End Url from them.

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #127583 by holch
Replied by holch on topic replacement & to & in End URL
I don't think this is intended behaviour. Maybe it would make sense to create a bug report.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 6 months ago #127602 by gabrieljenik
Replied by gabrieljenik on topic replacement & to & in End URL
Not sure is a bug...
Can you send a screenshot about how you setup the variable?

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose