diff --git a/src/Server/Coderr.Server.Web/Scripts/dashboard/jquery.app.js b/src/Server/Coderr.Server.Web/Scripts/dashboard/jquery.app.js index c77ff976..45fa7c3b 100644 --- a/src/Server/Coderr.Server.Web/Scripts/dashboard/jquery.app.js +++ b/src/Server/Coderr.Server.Web/Scripts/dashboard/jquery.app.js @@ -1,5 +1,8 @@ toggleMenuItem = function (uri) { - if (window.location.pathname === window.WEB_ROOT && window.location.hash === '') + + var webRoot = window.WEB_ROOT.toLocaleLowerCase(); + + if (window.location.pathname.toLocaleLowerCase() === webRoot && window.location.hash === '') uri = window.WEB_ROOT + '#/'; var $a; if (typeof uri === 'string') { @@ -7,7 +10,7 @@ toggleMenuItem = function (uri) { // we do not include root in links since // we can exist in a virtual folder, which means // that we would have had to parse links on all regular HTML pages. - var webRoot = window['WEB_ROOT']; + uri = uri.toLocaleLowerCase(); if (uri.indexOf(webRoot) === 0) { uri = uri.substr(webRoot.length); }