File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Server/Coderr.Server.Web/Scripts/dashboard Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
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 === '' )
3
6
uri = window . WEB_ROOT + '#/' ;
4
7
var $a ;
5
8
if ( typeof uri === 'string' ) {
6
9
7
10
// we do not include root in links since
8
11
// we can exist in a virtual folder, which means
9
12
// that we would have had to parse links on all regular HTML pages.
10
- var webRoot = window [ 'WEB_ROOT' ] ;
13
+ uri = uri . toLocaleLowerCase ( ) ;
11
14
if ( uri . indexOf ( webRoot ) === 0 ) {
12
15
uri = uri . substr ( webRoot . length ) ;
13
16
}
You can’t perform that action at this time.
0 commit comments