Skip to content

Opportunity call next as "next matched route" in beforeEnter guard with similar routes #2034

Closed Answered by posva
websharik asked this question in Help and Questions
Discussion options

You must be logged in to vote

Having multiple routes that match the exact same params like that is considered a bad practice as it creates ambiguous routes. By adding a prefix to them like /cats/:cat (or /cat-:cat, /c_:cat, etc) and /dogs/:dog, you will not only avoid this issue but improve the discoverability of your routes

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2033 on November 06, 2023 07:01.