Files
Mangarr/config/routes.yaml
ext.jeremy.guillot@maxicoffee.domains aea4e57b9e
All checks were successful
Deploy / deploy (push) Successful in 4m45s
fix: Vue SPA catch-all takes priority over legacy Twig routes
Without priority:1, Symfony matched legacy controllers (e.g. app_activity at /activity)
before the vue_app catch-all on hard reload. Now vue_app matches first for all paths
except /api/* and /legacy* which still route to Symfony controllers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 20:59:11 +01:00

16 lines
356 B
YAML

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