svelte_sidebar icon indicating copy to clipboard operation
svelte_sidebar copied to clipboard

Feature: Allow to customise active route matching

Open philipp-tailor opened this issue 5 years ago • 0 comments

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.

philipp-tailor avatar Feb 09 '20 13:02 philipp-tailor