svelte_sidebar
svelte_sidebar copied to clipboard
Feature: Allow to customise active route matching
As user of the sidebar component, I want to easily use the sidebar when using query parameters and URL hashes in my application.
Currently, the sidebar will detect whether a navigation route is currently active in the application in SidebarLink.svelte with a straight equality comparison. This might not work well for applications which use query parameters and URL hashes in the application. Such applications could pass a cleaned activeUrl prop, but might prefer to customise the detection, which URL is active.
Users of the component could pass a new matchActiveUrl property.