We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba3f112 + 1f70cdb commit c42588fCopy full SHA for c42588f
1 file changed
src/Server/Coderr.Server.Web/Scripts/dashboard/jquery.app.js
@@ -1,13 +1,16 @@
1
toggleMenuItem = function (uri) {
2
- if (window.location.pathname === window.WEB_ROOT && window.location.hash === '')
+
3
+ var webRoot = window.WEB_ROOT.toLocaleLowerCase();
4
5
+ if (window.location.pathname.toLocaleLowerCase() === webRoot && window.location.hash === '')
6
uri = window.WEB_ROOT + '#/';
7
var $a;
8
if (typeof uri === 'string') {
9
10
// we do not include root in links since
11
// we can exist in a virtual folder, which means
12
// that we would have had to parse links on all regular HTML pages.
- var webRoot = window['WEB_ROOT'];
13
+ uri = uri.toLocaleLowerCase();
14
if (uri.indexOf(webRoot) === 0) {
15
uri = uri.substr(webRoot.length);
16
}
0 commit comments