404 redirection

This commit is contained in:
Ian Bassi
2026-04-08 12:39:49 -03:00
parent 4b099f3909
commit a2a1727149

16
overrides/404.html Normal file
View File

@@ -0,0 +1,16 @@
{% extends "main.html" %}
{% set home_url = nav.homepage.url|url if nav.homepage else "index.html" %}
{% block extrahead %}
{{ super() }}
<meta http-equiv="refresh" content="0; url={{ home_url }}">
<script>
window.location.replace("{{ home_url }}")
</script>
{% endblock %}
{% block content %}
<h1>Redirecting...</h1>
<p>Page not found. Redirecting to the <a href="{{ home_url }}">home page</a>.</p>
{% endblock %}