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);
}
}
}
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.htmlWorkaround