From 5da5d63c1ed85fd3e08fc3a4ea743f8196f5bcef Mon Sep 17 00:00:00 2001 From: Simon Krull Date: Sat, 9 May 2026 07:47:12 +0200 Subject: [PATCH 1/2] FIX: [Shop] #115 fix slug route requirement to support nested page slugs --- config/routes/shop/page.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes/shop/page.yaml b/config/routes/shop/page.yaml index 4a7cd659..8792a936 100755 --- a/config/routes/shop/page.yaml +++ b/config/routes/shop/page.yaml @@ -3,6 +3,8 @@ sylius_cms_shop_page_show: methods: [GET] defaults: _controller: sylius_cms.controller.page.overriden::showAction + requirements: + slug: .+(? Date: Wed, 13 May 2026 08:10:19 +0200 Subject: [PATCH 2/2] behat: add test case --- features/shop/displaying_page.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/features/shop/displaying_page.feature b/features/shop/displaying_page.feature index e88cd241..465fbf5c 100644 --- a/features/shop/displaying_page.feature +++ b/features/shop/displaying_page.feature @@ -38,3 +38,12 @@ Feature: Displaying pages And this page also has "title" slug When I go to this page Then I should see page title "United States" + + @ui + Scenario: Displaying page with a nested slug containing a slash + Given there is a page in the store + And this page has "Article one" name + And this page also has "Article one" title + And this page also has "articles/article1" slug + When I go to the "articles/article1" page + Then I should see a page with "Article one" name