mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-21 00:49:35 +00:00
Added tests for RedirectController
This commit is contained in:
parent
40ca5bd0e4
commit
45a624d768
15 changed files with 509 additions and 6 deletions
|
|
@ -9,4 +9,4 @@ redirector:
|
|||
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})?\\\\//')"
|
||||
condition: "not (request.getPathInfo() matches '/^\\\\/[a-z]{2}(_[A-Z]{2})?\\\\//')"
|
||||
Loading…
Add table
Add a link
Reference in a new issue