Skip to content

Commit

Permalink
Update middleware.ts
Browse files Browse the repository at this point in the history
Added redirects for clash-of-nodes. 
Redirecting to paths without '/'
  • Loading branch information
amanbans authored Feb 20, 2024
1 parent c859066 commit 013f902
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const { origin } = request.nextUrl
source: '/clash-of-nodes/madara-karnot/',
destination: `${origin}/docs/clash-of-nodes/karnot`,
},
{
source: '/clash-of-nodes/madara-karnot',
destination: `${origin}/docs/clash-of-nodes/karnot`,
},
{
source: '/clash-of-nodes/challenges',
destination: `${origin}/docs/clash-of-nodes/challenges`
Expand All @@ -36,6 +40,10 @@ const { origin } = request.nextUrl
source: '/clash-of-nodes/dymension',
destination: `${origin}/docs/clash-of-nodes/dymension`
},
{
source: '/clash-of-nodes/dymension/',
destination: `${origin}/docs/clash-of-nodes/dymension`
},
{
source: '/clash-of-nodes/faqs',
destination: `${origin}/docs/clash-of-nodes/faqs`
Expand Down Expand Up @@ -92,6 +100,10 @@ const { origin } = request.nextUrl
source: "/about/identity/",
destination: `${origin}/docs/end-user-guide/identity`
},
{
source: "/about/identity",
destination: `${origin}/docs/end-user-guide/identity`
},
{
source: "/about/app-ids/",
destination: `${origin}/docs/end-user-guide/app-id`
Expand All @@ -100,10 +112,18 @@ const { origin } = request.nextUrl
source: "/about/balance-transfers/",
destination: `${origin}/docs/end-user-guide/balance-transfers`
},
{
source: "/about/balance-transfers",
destination: `${origin}/docs/end-user-guide/balance-transfers`
},
{
source: "/about/nomination-pools/",
destination: `${origin}/docs/end-user-guide/nomination-pools`
},
{
source: "/about/nomination-pools",
destination: `${origin}/docs/end-user-guide/nomination-pools`
},
{
source: "/category/operate-a-node/",
destination: `${origin}/docs/operate-a-node`
Expand Down Expand Up @@ -176,6 +196,10 @@ const { origin } = request.nextUrl
source: "/category/become-a-validator/",
destination: `${origin}/docs/operate-a-node/become-a-validator`
},
{
source: "/category/become-a-validator",
destination: `${origin}/docs/operate-a-node/become-a-validator`
},
{
source: "/operate/validator/avail-node-basics/",
destination: `${origin}/docs/operate-a-node/become-a-validator/0010-basics`
Expand All @@ -196,6 +220,10 @@ const { origin } = request.nextUrl
source: "/operate/validator/staking/",
destination: `${origin}/docs/operate-a-node/become-a-validator/stake-your-validator`
},
{
source: "/operate/validator/staking",
destination: `${origin}/docs/operate-a-node/become-a-validator/stake-your-validator`
},
{
source: "/operate/validator/backup/",
destination: `${origin}/docs/operate-a-node/become-a-validator/backup-your-validator`
Expand Down

0 comments on commit 013f902

Please sign in to comment.