Fix ACP active state issue

Apparently, all this time, there was a bug that caused active
states to not properly be shown in subfolder installations. This
commit fixes that regression. ping @psychobunny
v1.18.x
Julian Lam 10 years ago
parent 7420351eb7
commit 141174ac94

@ -73,7 +73,7 @@
href = menu.attr('href'),
isLink = menu.parent().attr('data-link') === '1';
if (!isLink && href && href.slice(1) === url) {
if (!isLink && href && href === [config.relative_path, url].join('/')) {
menu
.parent().addClass('active')
.parents('.menu-item').addClass('active');

Loading…
Cancel
Save