1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Keep search and hash when redirecting

This commit is contained in:
Unrud 2021-12-01 23:46:33 +01:00
parent 8dad4f386d
commit 3eb22a3aea

View file

@ -1,8 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="Refresh" content="0; url={target}">
<noscript><meta http-equiv="Refresh" content="0; url={target}"></noscript>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://github.com/Kozea/Radicale/releases.atom" type="application/atom+xml" rel="alternate" title="Radicale Releases">
<title>Redirect</title>
<p>Please follow <a href="{target}">this link</a>.</p>
<p>Please follow <a href="{target}" id="link">this link</a>.</p>
<script>
window.location.href = link.href = "{target}" + (window.location.search || "") + (window.location.hash || "");
</script>