Sign in

Changing titles doesn’t affect local preview URLs

  • This topic has 5 replies, 2 voices, and was last updated 2 years, 5 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4833
    Avatar photospurivol

    [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 photospurivol

    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.

    --
    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!

    #4837
    Avatar photospurivol

    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 photospurivol

    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.

    --
    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!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.