-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
As most static file servers will automatically serve index.html, it would be nice to have an option where you can use / instead of /index.html
Workaround
if (window.location.href.endsWith("/index.html")) {
history.replaceState(null, "", window.location.href.slice(0, -10));
}
window.onload = function () {
const anchors = document.getElementsByTagName("a");
for (let i = 0; i < anchors.length; i++) {
if (anchors[i].href.endsWith("/index.html")) {
anchors[i].href = anchors[i].href.slice(0, -10);
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.