diff options
Diffstat (limited to 'themes/luci-theme-material/htdocs/luci-static/material/js/script.js')
-rwxr-xr-x | themes/luci-theme-material/htdocs/luci-static/material/js/script.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js index fdd23e8cd2..a0f067595b 100755 --- a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js +++ b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js @@ -144,10 +144,11 @@ function getCurrentNodeByUrl() { var ret = false; var getUrlNode = function (href){ - if (!$('body').hasClass('logged-in')){ + var linkPos = href.indexOf(";"); + if (linkPos == -1){ return "login"; }else{ - var linkPos = href.indexOf("/", linkPos); + linkPos = href.indexOf("/", linkPos); if (linkPos == -1){ return "overview"; }else{ |