Skip to content

Commit

Permalink
Add another redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhenderson committed Jan 29, 2024
1 parent 84ed78d commit a852fe2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pages/blog/[post].js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ export const getStaticProps = async ({ params: { post: postSlug } }) => {
};
}

if (postSlug === "comm-works-2024") {
return {
redirect: {
destination: "/communication-works-2024",
permanent: true,
},
};
}

const allPosts = await getAllFullPosts();

const currentPost = allPosts.find((post) => post.slug === postSlug);
Expand Down

0 comments on commit a852fe2

Please sign in to comment.