mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
fix base redirect
This commit is contained in:
parent
304cfc42a9
commit
d531805597
2
docs/_templates/layout.html
vendored
2
docs/_templates/layout.html
vendored
@ -25,7 +25,7 @@
|
|||||||
"changelog.html": "changelog",
|
"changelog.html": "changelog",
|
||||||
}
|
}
|
||||||
|
|
||||||
const path = RTD_TO_MKD[window.location.pathname.substring(window.location.pathname.lastIndexOf("/") + 1)] + "/";
|
const path = (RTD_TO_MKD[window.location.pathname.substring(window.location.pathname.lastIndexOf("/") + 1)] ?? "") + "/";
|
||||||
const hash = window.location.hash;
|
const hash = window.location.hash;
|
||||||
const redirectURL = new URL(path + hash, "https://paperless-ngx.com/");
|
const redirectURL = new URL(path + hash, "https://paperless-ngx.com/");
|
||||||
console.log(`Redirecting to ${redirectURL} in 3 seconds...`);
|
console.log(`Redirecting to ${redirectURL} in 3 seconds...`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user