mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 06:49:04 +08:00
FIX: Allow forceActive without a customHref
This commit is contained in:
parent
60e804ad5c
commit
58b5d1434b
@ -187,9 +187,9 @@ NavItem.reopenClass({
|
||||
items.push(item);
|
||||
}
|
||||
|
||||
if (!item.customHref) return;
|
||||
|
||||
item.set("href", item.customHref(category, args));
|
||||
if (item.customHref) {
|
||||
item.set("href", item.customHref(category, args));
|
||||
}
|
||||
|
||||
if (item.forceActive && item.forceActive(category, args)) {
|
||||
item.active = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user