Skip to content

Commit

Permalink
add(ci): ajoute le fichier de redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jan 3, 2025
1 parent fc53df4 commit 5dd2f6e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions scripts/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="fr">

<head>
<!-- <link rel="canonical" href="https://geotribu.fr/"> -->
<meta charset="utf-8">
<!-- <meta http-equiv="refresh" content="0; url='https://geotribu.fr/'" /> -->
<meta name="robots" content="noindex">
<title>Redirection Geotribu</title>
</head>

<body>
<p>Preview website closed. Thanks to visit <a href="https://contribuer.geotribu.fr/">the main website</a>.</p>
<!-- Javascript -->
<script defer>
const url_base = window.location;
if (url_base.host.includes("preview-pullrequest-")) {
const new_url = "https://contribuer.geotribu.fr" + url_base.pathname;
console.log("Redirected to:", new_url);
window.location.replace(new_url);
}
else {
let new_url = "https://contribuer.geotribu.fr/";
window.location.replace(new_url);
}
</script>
</body>

</html>

0 comments on commit 5dd2f6e

Please sign in to comment.