custom-prometheus-exporter/templates/404.twig
Jeroen De Meerleer 265128d725
Update known paths in 404 error template based on available routes
- Adjusted handling of known paths to dynamically include additional routes if a specific directory exists, enhancing user experience.
2024-06-14 20:49:33 +02:00

14 lines
331 B
Twig

<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Page Title</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
</style>
<body>
<h1>404 Uri {{ path }} not found</h1>
{% for knownpath in knownpaths %}
<p><a href="{{ knownpath }}">{{ knownpath }}</a></p>
{% endfor %}
</body>
</html>