Skip to content

Commit a860a24

Browse files
committed
Support spec/1.2/index.html redirect and no JS
1 parent e3196d8 commit a860a24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/1.2/spec.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<html>
22
<head>
3+
<meta http-equiv="refresh" content="2; url=/spec/1.2.2/" />
34
<script>
45
var m;
56
var href = window.location.href;
67

7-
if (m = href.match(/\/spec\/1\.2\/?(?:spec\.html)?(#[a-z].+)/)) {
8+
if (m = href.match(/\/spec\/1\.2\/?(?:spec\.html|index\.html)?(#[a-z].+)/)) {
89
window.location.href = `/spec/1.2-old/spec.html${m[1]}`;
910
}
1011
else {

0 commit comments

Comments
 (0)