fix: ensure vue_app catch-all is matched before legacy controllers
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
Move vue_app before controllers in routes.yaml AND keep priority:1. Using both guarantees Symfony matches the Vue SPA catch-all first regardless of how the router compiles equal-priority routes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
aea4e57b9e
commit
1becbe9254
@@ -1,9 +1,3 @@
|
|||||||
controllers:
|
|
||||||
resource:
|
|
||||||
path: ../src/Controller/
|
|
||||||
namespace: App\Controller
|
|
||||||
type: attribute
|
|
||||||
|
|
||||||
vue_app:
|
vue_app:
|
||||||
path: /{req}
|
path: /{req}
|
||||||
controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController
|
controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController
|
||||||
@@ -13,3 +7,9 @@ vue_app:
|
|||||||
requirements:
|
requirements:
|
||||||
req: "^(?!api/|legacy).*"
|
req: "^(?!api/|legacy).*"
|
||||||
priority: 1
|
priority: 1
|
||||||
|
|
||||||
|
controllers:
|
||||||
|
resource:
|
||||||
|
path: ../src/Controller/
|
||||||
|
namespace: App\Controller
|
||||||
|
type: attribute
|
||||||
|
|||||||
Reference in New Issue
Block a user