Skip to content

Commit 052898d

Browse files
authored
Fix meta-pytorch.org redirects (#2047)
Was missing a slash that broke sub-path redirects
1 parent 4097769 commit 052898d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

404.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
META_PYTORCH_PROJECTS.map(project => [
5656
project,
5757
{
58-
location: `https://meta-pytorch.org/${project}`,
58+
location: `https://meta-pytorch.org/${project}/`,
5959
style: REDIRECT_STYLE.FULL,
6060
}
6161
])
@@ -71,7 +71,7 @@
7171
// eg "docs/overview/"
7272
const SUBPATH = PATH_PARTS.slice(2).join('/');
7373

74-
74+
7575
// Perform the redirect only for explicitly defined projects.
7676
// Otherwise show the 404 page below
7777
if (PROJECTS.hasOwnProperty(PROJECT)) {
@@ -100,7 +100,7 @@
100100
}
101101

102102
</script>
103-
103+
104104
<div style="text-align: center;">
105105
<img src="{{ site.baseurl }}/assets/images/404_sign.png" />
106106

0 commit comments

Comments
 (0)