Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Changing titles doesn’t affect local preview URLs

  • #4833
    Avatar photo[anonymous]

    [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

    1. Is that the way is intended to work?
    2. Will it affect my website once published too? (still can’t test that)
    #4834
    Avatar photo[anonymous]

    I found how to fix: Edit Post, SEO, Edit “Post slug”

    #4835
    Avatar photoBob

    It’s not a bug, locally the URLs always have a .html suffix.

    #4837
    Avatar photo[anonymous]

    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.

    #4838
    Avatar photo[anonymous]

    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.

    #4839
    Avatar photoBob

    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.