-
Checklist
How did you create the site?Generated from DescriptionWhenever someone tries to open a wrong url, when they land on the 404 page, it should redirect them to a specific link or just the home link after a few seconds. Operations you have already triedI thought of adding a script, but the 404.html looks more like a markdown file so no idea how to do it. Anything else?No response |
Beta Was this translation helpful? Give feedback.
Answered by
kungfux
Jul 27, 2024
Replies: 2 comments 2 replies
-
One of the possible ways is to override <script>
window.location.href = "/";
</script> |
Beta Was this translation helpful? Give feedback.
2 replies
-
I see |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I assume this happens because you use the newest variable
site.data.locales[lang].not_found.statement
(statement) instead ofsite.data.locales[lang].not_found.statment
(statment) that contained a typo and was fixed but not released yet.