Redo some Startpage :D
This commit is contained in:
16
src/layouts/Redirect.astro
Normal file
16
src/layouts/Redirect.astro
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import {astroI18n} from "astro-i18n";
|
||||
const { url } = Astro.props;
|
||||
---
|
||||
|
||||
<html lang={astroI18n.locale}>
|
||||
<head data-redirect={url}>
|
||||
<meta http-equiv="refresh" content={`0; URL=${url}`}/>
|
||||
<script>
|
||||
window.location.href = document.head.dataset["redirect"];
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href={url}>{url}</a></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user