mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 05:40:43 +01:00
* fix: closes #6784 * #6784 also fix homepage + subfolder installs * #6784 fixes suburls as well (ex. /tags/x and /groups/y) * #6784 more elegant solution @pitaj and the last time I touch this function, lol * #6784 regis, final answer I lied in that last commit
This commit is contained in:
committed by
Barış Soner Uşaklı
parent
325b0293b8
commit
7fb29f4272
@@ -283,12 +283,12 @@ app.cacheBuster = null;
|
||||
};
|
||||
|
||||
function highlightNavigationLink() {
|
||||
var path = window.location.pathname + window.location.search;
|
||||
$('#main-nav li').removeClass('active');
|
||||
if (path) {
|
||||
$('#main-nav li').removeClass('active').find('a[href="' + path + '"]').parent()
|
||||
.addClass('active');
|
||||
}
|
||||
$('#main-nav li')
|
||||
.removeClass('active')
|
||||
.find('a')
|
||||
.filter(function (i, x) { return window.location.pathname.startsWith(x.getAttribute('href')); })
|
||||
.parent()
|
||||
.addClass('active');
|
||||
}
|
||||
|
||||
app.createUserTooltips = function (els, placement) {
|
||||
|
||||
Reference in New Issue
Block a user