Skip to content
Snippets Groups Projects
Unverified Commit 3ce41982 authored by Paul Wise's avatar Paul Wise
Browse files

Redirect unsetlang to the correct location

The substitution was using the wrong match group.

Fixes: commit eef0d122
parent 355b1a42
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@
RewriteCond %{REQUEST_METHOD} ^POST$
RewriteRule /intro/cn/setlang/([a-z]{2}(?:-[a-z]{2})?)/(.*) /$2 [last,redirect,cookie=lang:$1:%{HTTP_HOST}:40320:/:secure:]
RewriteCond %{REQUEST_METHOD} ^POST$
RewriteRule /intro/cn/unsetlang/(.*) /$2 [last,redirect,cookie=lang:invalid:%{HTTP_HOST}:-1:/:secure:]
RewriteRule /intro/cn/unsetlang/(.*) /$1 [last,redirect,cookie=lang:invalid:%{HTTP_HOST}:-1:/:secure:]
SetEnvIf Cookie "lang=(.+)" prefer-language=$1
Header append Vary cookie
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment