From: Raphaƫl Gertz Date: Thu, 14 Nov 2024 07:50:59 +0000 (+0100) Subject: Move leading slash from path argument to route path X-Git-Tag: 0.0.8~5 X-Git-Url: https://git.rapsys.eu/treebundle/commitdiff_plain/4d41b887be69f7648bf0327ba96d67092e380b8b?ds=inline;hp=863d7cd4e4fa5ff8935b8575f219be5cfabc0e98 Move leading slash from path argument to route path --- 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: