fix: Relative links

This commit is contained in:
Laegel
2021-06-10 00:08:16 +02:00
parent 9ca5d488af
commit 465fbf2fc8
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ const transformLinks = (dom, crate) => {
Array.from(dom.window.document.querySelectorAll("a")).forEach((anchor) => {
if (isRelativeLink(anchor.href)) {
// TO REFINE
anchor.href = `/docs/api/rust/${crate}/` + anchor.href;
anchor.href = `/docs/api/rust/${crate}/` + anchor.href.replace(".html", "");
}
});
};

View File

@@ -164607,7 +164607,7 @@ const transformLinks = (dom, crate) => {
Array.from(dom.window.document.querySelectorAll("a")).forEach((anchor) => {
if (isRelativeLink(anchor.href)) {
// TO REFINE
anchor.href = `/docs/api/rust/${crate}/` + anchor.href;
anchor.href = `/docs/api/rust/${crate}/` + anchor.href.replace(".html", "");
}
});
};