Built site for gh-pages (e9a20ba)
This commit is contained in:
1 parent
ae79db27e6
commit
40ea4819a0
14 files changed
+302
-281
No files matched your search
@@ -274,7 +274,10 @@ window.document.addEventListener("DOMContentLoaded", function () {
|
||||
for (let i = 0; i < links.length; i++) {
|
||||
if (links[i].href) {
|
||||
links[i].dataset.originalHref = links[i].href;
|
||||
links[i].href = links[i].href.replace(/\/index\.html/, "/");
|
||||
// only strip index.html at the end of the path (optionally followed
|
||||
// by a query or fragment) so that files like index.html.md
|
||||
// (alternate-format twins) are left alone (#14667)
|
||||
links[i].href = links[i].href.replace(/\/index\.html(?=[?#]|$)/, "/");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user