1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Replace location for redirects

This commit is contained in:
Unrud 2021-12-05 02:59:42 +01:00
parent 1aaf131e58
commit 8ff15acd42

View file

@ -7,5 +7,6 @@
<title>Redirect</title>
<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 || "");
link.href += (window.location.search || "") + (window.location.hash || "");
window.location.replace(link.href);
</script>