Skip to content

Commit

Permalink
[feat] redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
suu3 committed Mar 1, 2024
1 parent d092f1b commit 00b7e50
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,22 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
createRedirect({
fromPath: `/`,
toPath: `/home/page/1`,
redirectInBrowser: true,
isPermanent: true,
})

createRedirect({
fromPath: `/home`,
fromPath: `/home/`,
toPath: `/home/page/1`,
redirectInBrowser: true,
isPermanent: true,
})

createRedirect({
fromPath: `/home/page/`,
toPath: `/home/page/1`,
redirectInBrowser: true,
isPermanent: true,
})
}

Expand Down

0 comments on commit 00b7e50

Please sign in to comment.