Files
Mangarr/config/routes.yaml
ext.jeremy.guillot@maxicoffee.domains 1becbe9254
Some checks failed
Deploy / deploy (push) Has been cancelled
fix: ensure vue_app catch-all is matched before legacy controllers
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>
2026-03-11 21:11:56 +01:00

16 lines
356 B
YAML

vue_app:
path: /{req}
controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController
defaults:
template: 'vue/index.html.twig'
req: ''
requirements:
req: "^(?!api/|legacy).*"
priority: 1
controllers:
resource:
path: ../src/Controller/
namespace: App\Controller
type: attribute