From f734d47befbefa827871520b5f9a1127b178a189 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 1 Apr 2015 12:54:09 -0400 Subject: [PATCH] closes https://github.com/NodeBB/nodebb-theme-vanilla/issues/21 and https://github.com/NodeBB/nodebb-theme-persona/issues/31 --- public/src/client/account/header.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/client/account/header.js b/public/src/client/account/header.js index 6dcc0b27e4..92cc40a416 100644 --- a/public/src/client/account/header.js +++ b/public/src/client/account/header.js @@ -20,7 +20,8 @@ define('forum/account/header', function() { function selectActivePill() { $('.account-sub-links li').removeClass('active').each(function() { var href = $(this).find('a').attr('href'); - if (window.location.href.indexOf(href) !== -1) { + + if (href === window.location.pathname) { $(this).addClass('active'); return false; }