Closed mathieuprog closed 12 months ago
Oh that is odd. I thought end was was to force exact matches because say a link to /
would always be active otherwise by default.
Sorry Ryan, misread the doc and all is fine now. I do not understand the naming end
, I agree with this person:
https://github.com/solidjs/solid-router/pull/179#issuecomment-1272236181
Thank you so much for your reply <3
Say a top menu Wallets:
Link:
The page rendered is a list of wallets. When clicking on a wallet, the location becomes:
It would be nice to have an additional option e.g. a boolean
top
, which allows to activate the menu when the href starts with the current location.There's already an option
end
but surprisingly it does kinda the opposite, it checks whether the current location starts with href. By the way this also made me wonder, for what kind of pages isend
useful?