From 88597f5081379f4317dae98cdd1fc93aa1dd0666 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 20 Aug 2024 20:46:58 +0200 Subject: [PATCH] chore: fix 404 page --- 404.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/404.html b/404.html index 4318cba97..f20a55ec8 100644 --- a/404.html +++ b/404.html @@ -2,7 +2,7 @@ // Check if the current path is versioned, if not, redirect to the default versioned path const versions = ["0.19.x", "latest"] const defaultVersion = "latest" - const basePath = "/gitlint" + const basePath = "/freqtrade/en" const targetRedirectPath = "404" // path to redirect to, relative to basePath // if path starts with version, redirect to versioned 404 @@ -21,6 +21,6 @@ // Replace it in href, so we keep hashes and query params // Only replace first occurence of basePath if (!foundVersion){ - window.location.href = window.location.href.replace(basePath, `${basePath}/en/${defaultVersion}`) + window.location.href = window.location.href.replace(basePath, `${basePath}/${defaultVersion}`) }