mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-10 00:18:57 +00:00
fix base redirect
This commit is contained in:
4
docs/_templates/layout.html
vendored
4
docs/_templates/layout.html
vendored
@@ -25,9 +25,9 @@
|
||||
"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 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...`);
|
||||
|
||||
setTimeout(() => {
|
||||
|
Reference in New Issue
Block a user