- Posts: 8
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
6 years 10 months ago #154543
by modifiedcontent
Why do URL's all have ?lang=en&encode= at the end? was created 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
6 years 10 months ago #154549
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Why do URL's all have ?lang=en&encode= at the end?
Can you provide more details?
Where do you see those? What LimeSurvey version are you using?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
6 years 10 months ago #154557
by tpartner
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.
Replied by tpartner on topic Why do URL's all have ?lang=en&encode= at the end?
Sorry, I don't understand that.On every URL in a test survey with one default question and default settings.
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.
Attachments:
The topic has been locked.
- modifiedcontent
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
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?
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
- Offline
- LimeSurvey GmbH Employee
Less
More
- Posts: 329
- Thank you received: 89
6 years 10 months ago #154585
by c_schmitz
Best regards
Carsten Schmitz
LimeSurvey project leader
Replied by c_schmitz on topic Why do URL's all have ?lang=en&encode= at the end?
&encode=
is not coming from LimeSurvey. There must be something else going on.
is not coming from LimeSurvey. There must be something else going on.
Best regards
Carsten Schmitz
LimeSurvey project leader
The topic has been locked.