Skip to content

Commit 29d1d92

Browse files
authored
Allow root URL to redirect to index.html
1 parent 1411c1b commit 29d1d92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@ Options -Indexes
19801980
if (!href) href = event.srcElement.parentElement.attributes['href'];
19811981
let hrefValue = href.value;
19821982

1983-
if (hrefValue === globalThis.lb.globalVariables()['website_url']) {
1983+
if (hrefValue === globalThis.lb.globalVariables()['website_url'] || hrefValue === "/") {
19841984
hrefValue = "/index.html";
19851985
} else {
19861986
hrefValue += globalThis.lb.dotHtmlForLinks() ? "" : ".html";

0 commit comments

Comments
 (0)