Header: Improve active route prop comparison #2751
Labels
enhancement
New feature or request
🧷 has workaround
📦 internet-header
Related to the @swisspost/internet-header package
request
Milestone
When declaring the
active-route
prop on the internet header, it's necessary to specify the full URL for an exact match.If the following link should be higlighted in the nav,
<a href="https://service.post.ch/test/example">Test example</a>
it should be possible to do that by setting<swisspost-internet-header active-route="/test/example"></swisspost-internet-header>
instead of the full URL.The text was updated successfully, but these errors were encountered: