pages can also end in .html
This commit is contained in:
parent
f887578f57
commit
9b57f8f0f1
2 changed files with 3 additions and 2 deletions
|
@ -211,7 +211,8 @@ $(document).ready(function(){
|
||||||
var name = $(li).attr('data-name');
|
var name = $(li).attr('data-name');
|
||||||
if((window.location.href.endsWith(link) ||
|
if((window.location.href.endsWith(link) ||
|
||||||
window.location.href.endsWith(link + "/") ||
|
window.location.href.endsWith(link + "/") ||
|
||||||
window.location.href.indexOf(link + "#") > -1)
|
window.location.href.indexOf(link + "#") > -1 ||
|
||||||
|
window.location.href.indexOf(link + ".html") > -1)
|
||||||
&& name !== "home"){
|
&& name !== "home"){
|
||||||
$(li).addClass("active");
|
$(li).addClass("active");
|
||||||
return false;
|
return false;
|
||||||
|
|
2
assets/js/main.min.js
vendored
2
assets/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue