We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e5ca2b + ed211ca commit 1e74eefCopy full SHA for 1e74eef
js/src/navigation.js
@@ -111,7 +111,7 @@ class Navigation extends BaseComponent {
111
})
112
}
113
114
- if (!this._config.activeLinksExact && element.href.startsWith(currentUrl)) {
+ if (!this._config.activeLinksExact && currentUrl.startsWith(element.href)) {
115
element.classList.add(CLASS_NAME_ACTIVE)
116
// eslint-disable-next-line unicorn/no-array-for-each
117
Array.from(this._getParents(element, SELECTOR_NAV_GROUP)).forEach(element => {
0 commit comments