Skip to content

Commit cdd06b7

Browse files
Make redirect for SRI spec include fragment ID
This change makes the specs/subresourceintegrity/index.html file’s in-document redirect include any fragment ID in the target URL the request gets redirected to. That prevents any existing links like https://w3c.github.io/webappsec/specs/subresourceintegrity/#HTMLLinkElement (in, eg., MDN articles) from otherwise breaking.
1 parent e494c2c commit cdd06b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

specs/subresourceintegrity/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta http-equiv="refresh" content="0; url=https://w3c.github.io/webappsec-subresource-integrity/">
54
<meta charset="utf-8">
65
<title>Subresource Integrity</title>
76
<script src='https://www.w3.org/Tools/respec/respec-w3c-common' class='remove'></script>
@@ -122,7 +121,7 @@
122121
};
123122
</script>
124123
</head>
125-
<body>
124+
<body onload='(function() { location.href = "https://w3c.github.io/webappsec-subresource-integrity/" + location.hash; })()'>
126125
<section id="abstract">
127126
<p>This specification defines a mechanism by which user agents may verify that
128127
a fetched resource has been delivered without unexpected manipulation.</p>

0 commit comments

Comments
 (0)