When changing a user’s slug, the author links on their posts do not update and lead to 404’s. I have observed this on a self hosted instance on digital ocean as well as Ghost(Pro).
What steps could someone else take to reproduce the issue you’re having?
Observe that the link in a byline of a post is `/author/firstname-lastname
Change that user’s slug to a-different-slug
Observe that the link is still /author/firstname-lastname
A work around is to change the author of the post, then change it back. At that point the byline link will have updated.
Is there a way to avoid the workaround or is this a bug? It doesn’t make sense to keep a link on the byline because it goes to a 404 page since it doesn’t exist anymore.
Are you able to access the author pages for other authors? If this is impacting all of your authors, it could be something to do with your routes.yml file.
I was seeing the same thing. My staff user slugs were basically all {{firstname}}-{{lastname}}. I went through and changed them manually to {{firstinitial}}{{lastname}}. But I noticed that the link for the author at the top of each post was pointing at /author/{{firstname}}-{{lastname}} still, not the new slug.
My solution was to change my post template so that instead of using “{{url}}” for the author URL, I just manually use “{{@site.url}}/author/{{slug}}”.