Changing post URL doesn't update older internal links

When I change a post URL, I was under the impression that any internal links using the old post URL would automatically update, but apparently I’m wrong after doing a little test.

Just curious, is this on the agenda of things to implement?

I can’t speak to the roadmap, but there’s a tool for this.

It’s called gctools and I wish they would make it part of the ghost CLI for better visibility.

It has a find-replace tool. You can use for URLs and other things.

Be careful if you have any relative references, the structure may be different.

The better solution if you’re changing historic urls is to put a redirect in place to redirect the old to the new. That way links from external sites still work and you don’t mess with your SEO to the same extent.

The gctools link replacer is meant more for data migration issues or fixes than handling a change of a post url on an established site. Although you’re of course free to use it how you like.

@Kevin I want a little paperclip that pops up with “It seems that you’re editing the URL of a published post - would you like to add a re-direct entry?”

I am ready to spend 12 months with FreeCodeCamp to become a js ninja only for this feature. Promise you will merge it, yes?

1 Like