Merge pull request #3601 from MegaGM/fix.li-class-active.on.profile.page2

Resolve #3599
This commit is contained in:
Barış Soner Uşaklı
2015-09-13 13:42:52 -04:00

View File

@@ -19,7 +19,7 @@ define('forum/account/header', function() {
$('.account-sub-links li').removeClass('active').each(function() {
var href = $(this).find('a').attr('href');
if (href === window.location.pathname) {
if (decodeURIComponent(href) === decodeURIComponent(window.location.pathname)) {
$(this).addClass('active');
return false;
}