When using path prefixes for language and globalredirect the module causes a redirect loop because it fails to add path prefix to $_SERVER['REQUEST_URI'].

This patch fixes this issue.

CommentFileSizeAuthor
language_prefix.patch1.67 KBLuxian

Comments

Luxian created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, language_prefix.patch, failed testing.

anybody’s picture

Please explain in an example how to set the regular expression when language prefixes are used.

Is it for example:
{(^de/produkte|^en/products)}?
or {(^produkte|^products)} ?

anybody’s picture

The 2nd one seems to match, but leads to an infinite redirect loop as this issue describes.

anybody’s picture

Testing the patch above for the described case:
WITHOUT the patch the module leads to a redirect error
WITH the patch to a 404