First of all, thank you for this beautiful library - I am enjoying it very much! It is the perfect tool to use routing in Svelte without the need of SvelteKit.
I just have a small question on how to highlight active links:
when I have a view for /books/ and this view is highlighted in my navigation bar (which works perfectly), I am having trouble to also highlight the views in /books/1 & /books/2 at the same time.
Is there a one liner, conditional matching or regular expression for both use cases? Because use:active={'/books/*'} highlights only the detail view, not the list view and use:active={'/books/'} highlights only the list view, not the detail views.
First of all, thank you for this beautiful library - I am enjoying it very much! It is the perfect tool to use routing in Svelte without the need of SvelteKit.
I just have a small question on how to highlight active links: when I have a view for
/books/
and this view is highlighted in my navigation bar (which works perfectly), I am having trouble to also highlight the views in/books/1
&/books/2
at the same time.Is there a one liner, conditional matching or regular expression for both use cases? Because
use:active={'/books/*'}
highlights only the detail view, not the list view anduse:active={'/books/'}
highlights only the list view, not the detail views.