mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: don't highlight external nav items
This commit is contained in:
@@ -285,8 +285,8 @@ app.cacheBuster = null;
|
||||
.removeClass('active')
|
||||
.find('a')
|
||||
.filter(function (i, x) {
|
||||
return window.location.pathname === x.pathname ||
|
||||
window.location.pathname.startsWith(x.pathname + '/');
|
||||
return window.location.hostname === x.hostname && (window.location.pathname === x.pathname ||
|
||||
window.location.pathname.startsWith(x.pathname + '/'));
|
||||
})
|
||||
.parent()
|
||||
.addClass('active');
|
||||
|
||||
Reference in New Issue
Block a user