mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-05 15:31:14 +00:00
chore: fix 404 page
This commit is contained in:
4
404.html
4
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}`)
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user