Skip to content

Commit 1f70cdb

Browse files
committed
Fixed upper and lower letters in url issue with left menu. Did not expand menu if it didn't match.
1 parent ba3f112 commit 1f70cdb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Server/Coderr.Server.Web/Scripts/dashboard/jquery.app.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
toggleMenuItem = function (uri) {
2-
if (window.location.pathname === window.WEB_ROOT && window.location.hash === '')
2+
3+
var webRoot = window.WEB_ROOT.toLocaleLowerCase();
4+
5+
if (window.location.pathname.toLocaleLowerCase() === webRoot && window.location.hash === '')
36
uri = window.WEB_ROOT + '#/';
47
var $a;
58
if (typeof uri === 'string') {
69

710
// we do not include root in links since
811
// we can exist in a virtual folder, which means
912
// that we would have had to parse links on all regular HTML pages.
10-
var webRoot = window['WEB_ROOT'];
13+
uri = uri.toLocaleLowerCase();
1114
if (uri.indexOf(webRoot) === 0) {
1215
uri = uri.substr(webRoot.length);
1316
}

0 commit comments

Comments
 (0)