Skip to content

Commit

Permalink
Update /multipage/websockets redirect to work with/without slash
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Dec 20, 2023
1 parent 0ea323d commit a9ab4ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions debian/marquee/nginx/sites/html.spec.whatwg.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ server {
location = /multipage/web-sockets.html {
return 301 https://websockets.spec.whatwg.org/;
}
location = /multipage/websockets {
return 301 https://websockets.spec.whatwg.org/;
}
location = /multipage/window-object.html {
return 301 /multipage/nav-history-apis.html;
}
Expand Down Expand Up @@ -96,6 +93,9 @@ server {
location = /multipage/link-fixup.js {
return 301 /link-fixup.js;
}
location ~ ^/multipage/websockets(/(.*))?$ {
return 301 https://websockets.spec.whatwg.org/$2;
}
location = /demos/offline/clock/clock.html {
return 301 /demos/offline/clock/clock2.html;
}
Expand Down
2 changes: 1 addition & 1 deletion test/redirects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const HTTPS_TESTS = [
['https://html.spec.whatwg.org/multipage/scripting-1.html', 301, 'https://html.spec.whatwg.org/multipage/scripting.html'],
['https://html.spec.whatwg.org/multipage/section-sql.html', 410],
['https://html.spec.whatwg.org/multipage/tabular-data.html', 301, 'https://html.spec.whatwg.org/multipage/tables.html'],
['https://html.spec.whatwg.org/multipage/websockets/', 301, 'https://websockets.spec.whatwg.org/'],
['https://html.spec.whatwg.org/multipage/websockets', 301, 'https://websockets.spec.whatwg.org/', 'keep'],
['https://javascript.spec.whatwg.org/', 302, 'https://github.com/tc39/ecma262/labels/web%20reality', 'drop'],
['https://lists.whatwg.org/htdig.cgi', 301, 'https://lists.whatwg.org/pipermail/', 'keep'],
['https://lists.whatwg.org/listinfo.cgi', 301, 'https://lists.whatwg.org/'],
Expand Down

0 comments on commit a9ab4ed

Please sign in to comment.