awesome-prometheus-alerts/site/src/pages/alertmanager.html.astro
Samuel Berthe e0311c3c09
fix: replace Astro redirects with static meta-refresh pages for legacy .html URLs
GitHub Pages is a static host and does not support server-side redirects.
Astro redirects config only works for SSR targets, so legacyHtmlRedirects had
no effect. Replace with real .html.astro pages using meta http-equiv=refresh
and link rel=canonical. Also disallow legacy URLs in robots.txt.
2026-04-21 16:39:01 +02:00

16 lines
428 B
Text

---
const base = import.meta.env.BASE_URL.replace(/\/$/, '');
const destination = `${base}/alertmanager/`;
---
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Redirecting…</title>
<link rel="canonical" href={destination} />
<meta http-equiv="refresh" content={`0; url=${destination}`} />
</head>
<body>
<p>Redirecting to <a href={destination}>{destination}</a>…</p>
</body>
</html>