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;
 			}