We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b35993 commit 9a1d729Copy full SHA for 9a1d729
components/templates/src/builtins/internal/alias.html
@@ -1,6 +1,12 @@
1
<!doctype html>
2
<meta charset="utf-8">
3
-<link rel="canonical" href="{{ url | safe }}">
4
-<meta http-equiv="refresh" content="0; url={{ url | safe }}">
5
<title>Redirect</title>
+<script>
+ const target = "{{ url | safe }}";
6
+ const hash = window.location.hash || "";
7
+ window.location.replace(target + hash);
8
+</script>
9
+<noscript>
10
+ <meta http-equiv="refresh" content="0; url={{ url | safe }}">
11
+</noscript>
12
<p><a href="{{ url | safe }}">Click here</a> to be redirected.</p>
0 commit comments