mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Readded accidentially removed RedirectorController to routes.
This commit is contained in:
parent
8525a815c3
commit
1812e6f5bc
1 changed files with 7 additions and 7 deletions
|
@ -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})?\\\\//')"
|
Loading…
Add table
Add a link
Reference in a new issue