Our company’s website, https://wunderdog.io, is based on Gatsby + Contentful. Recently, we have been creating a “news” page, which we later renamed from /latest-news to /news in our CMS. After the name change, Gatsby generated a new path removing the old one. I was sure I would find a Gatsby plugin solving this problem to automatically track page path changes to create redirects. WordPress, for example, has plenty of plugins that do this. To my surprise, I found none. Neither did my colleagues.
This seemingly innocent problem affects links previously shared on social media or other websites, which cease to work. By clicking it, you get a 404, thus resulting in lost traffic. Concurrently, the page’s SEO score may be damaged since Google will not know all the links pointing to https://wunderdog.io/latest-news are actually intended to point to https://wunderdog.io/news. The solution, of course, is to create redirects (e.g., from /latest-news to /news). This way you can get users to load the right page and keep the page’s SEO score intact.