Skip to content

Only limit route names when calling route()#790

Merged
bakerkretzmar merged 2 commits intotighten:2.xfrom
simon-tma:patch-2
Jan 22, 2025
Merged

Only limit route names when calling route()#790
bakerkretzmar merged 2 commits intotighten:2.xfrom
simon-tma:patch-2

Conversation

@simon-tma
Copy link
Contributor

When strictRouteNames is set, we still need to allow wildcard route names to be passed to current() and potentially invalid route names to be passed to has().

This changes allows route().current('dashboard.*') to be considered valid while still preventing calling route() with an unknown route name.

When `strictRouteNames` is set, we still need to allow wildcard route names to be passed to `current()` and potentially invalid route names to be passed to `has()`.
@bakerkretzmar bakerkretzmar self-assigned this Nov 21, 2024
@bakerkretzmar
Copy link
Collaborator

Great catch and appreciate your patience. Thanks for the PR!

@bakerkretzmar bakerkretzmar merged commit 5dc7a0e into tighten:2.x Jan 22, 2025
22 checks passed
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