Readded accidentially removed RedirectorController to routes.

This commit is contained in:
Jan Böhmer 2020-04-28 17:23:57 +02:00
parent 8525a815c3
commit 1812e6f5bc

View file

@ -8,10 +8,10 @@ scan_qr:
path: /scan/{type}/{id}
controller: App\Controller\ScanController:scanQRCode
#redirector:
# path: /{url}
# requirements:
# url: ".*"
# 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})?\\\\//')"
redirector:
path: /{url}
requirements:
url: ".*"
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})?\\\\//')"