Changing titles doesn’t affect local preview URLs
- This topic has 5 replies, 2 voices, and was last updated 2 months, 2 weeks ago by .
- December 21, 2020 at 9:59 am#4833spurivol
[Technews theme] Changing posts’ titles doesn’t affect local preview URLs, so browser still shows old URLs like this: Publii/sites/my-site/preview/old-title.html
December 21, 2020 at 11:03 am#4834spurivol
- Is that the way is intended to work?
- Will it affect my website once published too? (still can’t test that)
I found how to fix: Edit Post, SEO, Edit “Post slug”December 21, 2020 at 5:28 pm#4835BobSupport
It’s not a bug, locally the URLs always have a .html suffix.
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!December 21, 2020 at 8:59 pm#4837spurivol
What I’m pointing out is not the suffix itself, I try to make it more clear:
The post slug doesn’t automatically change if I change the title of the post. On Adding, editing and deleting posts is mentioned
If left blank Publii will automatically generate this
but the “automatically” is meant to be only on post creation and not on later title modifications.December 22, 2020 at 4:59 am#4838spurivol
So that is well designed since it is not recommended that you change the post slug after a post is published. If you do change a post slug after publishing a post, all external existing links to that post will now be “broken” and no longer work since there is no URL redirection. My only suggestion is to make it clear in the above linked documentation, especially for beginners.December 22, 2020 at 6:02 am#4839BobSupport
Yeap, exactly, the reason is the way Publii handles SEO to prevent loss of search engine rankings and traffic.
I added the relevant information in the documentation. Thanks for the suggestion.
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!
- You must be logged in to reply to this topic.