Skip to content

Laravel - Active Route - Prefix Wildcard #642

Closed Answered by bakerkretzmar
ekcltfrm asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah Ziggy's 'current' functionality only works with named routes. If your routes all start with /sl/ but aren't named sl.* you don't really need Ziggy to make those checks, you could do something like location.pathname.startsWith('/sl/').

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bakerkretzmar
Comment options

Answer selected by ekcltfrm
@ekcltfrm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants