From 4d41b887be69f7648bf0327ba96d67092e380b8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 14 Nov 2024 08:50:59 +0100 Subject: [PATCH 1/1] Move leading slash from path argument to route path --- config/routes/rapsystree.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config/routes/rapsystree.yaml b/config/routes/rapsystree.yaml index d52b998..ab0db7f 100644 --- a/config/routes/rapsystree.yaml +++ b/config/routes/rapsystree.yaml @@ -15,16 +15,16 @@ rapsystree_about: rapsystree_album: path: - en_gb: '/en/album/{id}/{slug}{path}' - fr_fr: '/album/{id}/{slug}{path}' + en_gb: '/en/album/{id}/{slug}/{path}' + fr_fr: '/album/{id}/{slug}/{path}' controller: Rapsys\TreeBundle\Controller\TreeController::album defaults: id: ~ - path: ~ + path: '' slug: ~ requirements: id: '\d+' - path: '/.*' + path: '.*?' slug: '[\w-]+' methods: GET|POST @@ -64,16 +64,16 @@ rapsysuser_edit: rapsystree_element: path: - en_gb: '/en/element/{id}{path}' - fr_fr: '/element/{id}{path}' + en_gb: '/en/element/{id}/{path}' + fr_fr: '/element/{id}/{path}' controller: Rapsys\TreeBundle\Controller\TreeController::element defaults: id: ~ - path: ~ + path: '' requirements: id: '\d+' - path: '/.*' - methods: GET|POST + path: '.*?' + methods: GET rapsysuser_index: path: -- 2.41.1