File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22<meta charset =" UTF-8" />
3- <meta http-equiv =" refresh" content =" 0; URL=../{{ spec_folder }}/" />
3+ <!--
4+ We want the redirect to keep the current URL's fragment, but that can't be
5+ done if without JS support. So we use a meta refresh inside a noscript for
6+ browsers that don't support JS, and do a JS-based redirection otherwise.
7+ -->
8+ <noscript >
9+ <meta http-equiv =" refresh" content =" 0; URL=../{{ spec_folder }}/" />
10+ </noscript >
411<title >Redirecting...</title >
512<style >
613 :root {
714 color-scheme : light dark ;
815 }
916 </style >
10- <p >Redirecting to <a href =" ../{{ spec_folder }}/" >{{ spec_folder }}</a >...</p >
17+ <p >Redirecting to <a href =" ../{{ spec_folder }}/" >{{ spec_folder }}</a >...</p >
18+
19+ <script >
20+ // JS-based redirection.
21+ const url = new URL (" ../{{ spec_folder }}/" , location .href );
22+ url .hash = location .hash ;
23+ location .replace (url .href );
24+ </script >
You can’t perform that action at this time.
0 commit comments