From aea4e57b9e9c6b76ca9b3df12d42dab3fd1acfb9 Mon Sep 17 00:00:00 2001 From: "ext.jeremy.guillot@maxicoffee.domains" Date: Wed, 11 Mar 2026 20:59:11 +0100 Subject: [PATCH] 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 --- config/routes.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes.yaml b/config/routes.yaml index ceb0599..fed33d3 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -11,4 +11,5 @@ vue_app: template: 'vue/index.html.twig' req: '' requirements: - req: ".*" + req: "^(?!api/|legacy).*" + priority: 1