I have an article with url alias '/gettting-started' and it is translated in several languages.
Lang codes for other languages is set like the following.
For German:de-de, English: en-us.
In 'admin/config/regional/language/detection' Detection and selection languages, priority is set to 'URL' then 'Browser'.
My browser locale set to German first,so when i try to visit the article with the /getting-started
, it is redirected to /de-de/getting-started
with the status 301.
The status code 301 is creating the problem for me as the response is cached at varnish cache (for 301 response codes).
The other user, with English as priority in Browser language visits /getting-started
redirects to /de-de/getting-started
So, instead of sending 301, how can i send 302 redirect for urls without language code as a prefix.