FS#39027 - Google results changing set language

Attached to Project: AUR web interface
Opened by Colin (beardedlinuxgeek) - Monday, 24 February 2014, 13:10 GMT
Last edited by Lukas Fleischer (lfleischer) - Tuesday, 27 May 2014, 18:47 GMT
Task Type Feature Request
Category Backend
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version 2.3.1
Due in Version 3.0.0
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

The language is set when a GET variable is received like "?setlang=hr" and then stored in a cookie. Lately Google has been indexing a lot of AUR pages but with the "setlang" variable in the URL set all over the place. Google is great for searching the AUR but it's annoying to change your language settings all the time because URL google indexed has unnecessary GET variables in it.

This can be easily fixed by changing the form method from GET to POST. If you really want to keep using GET, you can include a timestamp or even better would be to detect the googlebot browser agent and then HTTP/301 them to the same URL but without the ?setlang= variable.
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Tuesday, 27 May 2014, 18:47 GMT
Reason for closing:  Implemented
Additional comments about closing:  Implemented in 3.0.0.

Loading...