mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
When redirecting preserve anchors
This commit is contained in:
@@ -81,7 +81,12 @@ def add_old_redirects(loc: str) -> None:
|
||||
<head>
|
||||
<title>Redirecting...</title>
|
||||
<link rel="canonical" href="{bname}/" />
|
||||
<noscript>
|
||||
<meta http-equiv="refresh" content="0;url={bname}/" />
|
||||
</noscript>
|
||||
<script type="text/javascript">
|
||||
window.location.replace('./{bname}/' + window.location.hash);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting, please wait...</p>
|
||||
|
||||
Reference in New Issue
Block a user