Skip to content

Commit

Permalink
Add redirects for /react sub-site (#403)
Browse files Browse the repository at this point in the history
* chore: add initial scaffold for redirects

* chore: add in redirect info

* chore: update react redirect

* Update redirects.json

* Update redirects.json
  • Loading branch information
joshblack authored Aug 16, 2024
1 parent a3c34e2 commit 94b6f34
Showing 1 changed file with 61 additions and 5 deletions.
66 changes: 61 additions & 5 deletions redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,62 @@
"destination": "/guides/status"
},

{
"name": "Redirect react root",
"match": "^react/$",
"destination": "/"
},
{
"name": "React redirect getting started",
"match": "^react/getting-started",
"destination": "/guides/react"
},
{
"name": "React redirect theming",
"match": "^react/theming",
"destination": "/guides/react/theming"
},
{
"name": "React redirect theme reference",
"match": "^react/theme-reference",
"destination": "/guides/react/theme-reference"
},
{
"name": "React redirect linting",
"match": "^react/linting",
"destination": "/guides/react/linting"
},
{
"name": "React redirect system props",
"match": "^react/system-props",
"destination": "/guides/react/system-props"
},
{
"name": "React redirect core concepts",
"match": "^react/core-concepts",
"destination": "/guides/react/core-concepts"
},
{
"name": "React redirect philosophy",
"match": "^react/philosophy",
"destination": "/guides/react/philosophy"
},
{
"name": "React redirect overriding styles",
"match": "^react/overriding-styles",
"destination": "/guides/react/overriding-styles"
},
{
"name": "React redirect status",
"match": "^react/status",
"destination": "/guides/status"
},
{
"name": "React redirect useSafeTimeout hook",
"match": "^react/hooks/useSafeTimeout",
"destination": "/guides/react/hooks/use-safe-timeout"
},

{
"name": "React docs for ActionList",
"match": "^react/ActionList",
Expand Down Expand Up @@ -904,16 +960,16 @@
"match": "^prism/(.*)",
"destination": "https://primer.github.io/prism/{R:1}"
},
{
"name": "React reverse-proxy",
"match": "^react/(.*)",
"destination": "https://primer.github.io/react/{R:1}"
},
{
"name": "CSS reverse-proxy",
"match": "^css/storybook/(.*)",
"destination": "https://primer.github.io/css/storybook/{R:1}"
},
{
"name": "React Storybook reverse-proxy",
"match": "^react/storybook/(.*)",
"destination": "https://primer.github.io/react/storybook/{R:1}"
},
{
"name": "Design proxy",
"match": "^/?(.*)",
Expand Down

0 comments on commit 94b6f34

Please sign in to comment.