diff --git a/config/routes.yaml b/config/routes.yaml index b99a4ebf..6de247bf 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -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})?\\\\//')" \ No newline at end of file +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})?\\\\//')" \ No newline at end of file