Skip to content

feat(metadata): Add route priorities#1147

Merged
NoResponseMate merged 1 commit intoSylius:1.15from
loic425:route-priorities
Feb 11, 2026
Merged

feat(metadata): Add route priorities#1147
NoResponseMate merged 1 commit intoSylius:1.15from
loic425:route-priorities

Conversation

@loic425
Copy link
Copy Markdown
Member

@loic425 loic425 commented Feb 10, 2026

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

For the shop section, we need a -100 default route priority to all shop routes cause admin match the current regex ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$ for the locale parameter.
https://github.com/Sylius/Sylius/blob/6f7177fdc6970c032fefbfb007670422c9070053/config/routes/sylius_shop.yaml#L5

Currently in Sylius routing it works because of the routing files order between Shop and admin.

Before
image

After
image

@loic425 loic425 force-pushed the route-priorities branch 2 times, most recently from a60f2f1 to b1cc84d Compare February 10, 2026 15:55
@NoResponseMate NoResponseMate merged commit 95f0a6c into Sylius:1.15 Feb 11, 2026
18 checks passed
@loic425 loic425 deleted the route-priorities branch February 11, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants