Welcome to the LimeSurvey Community Forum

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

Why do URL's all have ?lang=en&encode= at the end?

  • modifiedcontent
  • modifiedcontent's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #154543 by modifiedcontent
Why do most URL's have unnecessary '?lang=en&encode=' at the end? Is there any way to remove those?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #154549 by tpartner
Can you provide more details?
Where do you see those? What LimeSurvey version are you using?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • modifiedcontent
  • modifiedcontent's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago #154555 by modifiedcontent
Replied by modifiedcontent on topic Why do URL's all have ?lang=en&encode= at the end?
On every URL in a test survey with one default question and default settings. Latest version 2.65.0+170502.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 10 months ago #154557 by tpartner

On every URL in a test survey with one default question and default settings.

Sorry, I don't understand that.

This is what I see - the language, which is a valid parameter, is appended but nothing else.



Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • modifiedcontent
  • modifiedcontent's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 10 months ago - 6 years 10 months ago #154559 by modifiedcontent
Replied by modifiedcontent on topic Why do URL's all have ?lang=en&encode= at the end?
The language parameter is unnecessary as well. If the default language is English, there should be no need to include that in every URL.

Is there no way to set that and encoding in config and clean up the URLs? I have never seen php scripts set those general default parameters in the URL.

Changing the 'Character set for file import/export' in /admin/globalsettings to '(Automatic)' did not have any effect. '&encode=' still shows up.

I also tried this in .htaccess, with no effect:

RewriteCond %{QUERY_STRING} ^(.*)?lang=en&encode=[^&]+&?(.*)$ [NC]
RewriteRule ^/?(.*)$ /$1?%1%2 [R=301,L]

Related issue: why is index.php in the URL?

domainname.com/survey/index.php/621145

Why not this?

domainname.com/survey/621145

Browsers have no problem finding the right survey with the shorter/cleaner version.

Can I take that unnecessary 'index.php' out with .htaccess? Does LimeSurvey have a 'clean URL' config option somewhere that I missed?
Last edit: 6 years 10 months ago by modifiedcontent.
The topic has been locked.
  • c_schmitz
  • c_schmitz's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 10 months ago #154585 by c_schmitz
&encode=

is not coming from LimeSurvey. There must be something else going on.

Best regards

Carsten Schmitz
LimeSurvey project leader
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose