@onsvisual/svelte-components 1.1.45 → 1.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,7 +96,7 @@
96
96
  }
97
97
 
98
98
  function getActiveLink(navLinks, path) {
99
- const candidates = navLinks.filter((link) => path.endsWith(link.href));
99
+ const candidates = navLinks.filter((link) => path.includes(link.href));
100
100
  return candidates.length ? candidates[candidates.length - 1] : null;
101
101
  }
102
102
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run build:package && npm run build:docs",