Fixed redirection, when no locale and no valid path were given

This commit is contained in:
Jan Böhmer 2019-09-12 21:41:38 +02:00
parent 6e74eb8276
commit adf5db1a0a
2 changed files with 6 additions and 2 deletions

View file

@ -7,4 +7,6 @@ redirector:
path: /{url}
requirements:
url: ".*"
controller: App\Controller\RedirectController:addLocalePart
controller: App\Controller\RedirectController:addLocalePart
# Dont match localized routes (no redirection loop, if no root with that name exists)
condition: "not (request.getPathInfo() matches '/\\\\/[a-z]{2}(_[A-Z]{2})?\\\\//')"