Skip to content

FIX: [Shop] #115 fix slug route requirement to support nested page slugs#158

Open
crydotsnake wants to merge 1 commit intoSylius:1.1from
crydotsnake:fix/115/page-slug-route-requirement-allow-slashes
Open

FIX: [Shop] #115 fix slug route requirement to support nested page slugs#158
crydotsnake wants to merge 1 commit intoSylius:1.1from
crydotsnake:fix/115/page-slug-route-requirement-allow-slashes

Conversation

@crydotsnake
Copy link
Copy Markdown
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #115
License MIT

Description

When you have for example a rendered page link in the collections, and the page link slug has two / in the slug, it currently crashes and returns a exception.

image

This is because, the sylius_cms_shop_page_show route in the config/routes/page.yaml has no requirements for the {slug} defined. And therefore, it uses the default config by Symfony [^/]++. And this does not allow two /.

@crydotsnake crydotsnake requested a review from a team as a code owner May 9, 2026 05:51
@crydotsnake crydotsnake self-assigned this May 9, 2026
@crydotsnake crydotsnake added Bug Confirmed bugs or bugfixes. Shop Shop related issues and PRs. labels May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Confirmed bugs or bugfixes. Shop Shop related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant