mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Do not redirect missing API prefixed routes to a localized version
This commit is contained in:
parent
c49aff5cfc
commit
469f9e8933
1 changed files with 2 additions and 2 deletions
|
@ -15,5 +15,5 @@ redirector:
|
||||||
requirements:
|
requirements:
|
||||||
url: ".*"
|
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)
|
# Dont match localized routes (no redirection loop, if no root with that name exists) or API prefixed routes
|
||||||
condition: "not (request.getPathInfo() matches '/^\\\\/[a-z]{2}(_[A-Z]{2})?\\\\//')"
|
condition: "not (request.getPathInfo() matches '/^\\\\/([a-z]{2}(_[A-Z]{2})?|api)\\\\//')"
|
Loading…
Add table
Add a link
Reference in a new issue