• Resolved barnabas1

    (@barnabas1)


    In the gutenberg editor, after installing the plugin, the post slug is no longer editable. Why is this?

    Also, is there a way of bulk editing the slugs?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @barnabas1,

    That is a good question. I will try to not overcomplicate it 🙂

    Permalink Manager Lite overrides the permalink logic at a low level before the Block Editor (Gutenberg) parses the native permalink UI using JS-based internal selector/method: isPermalinkEditable().

    It checks if the native slug is present in the canonical permalink. The problem here is that Permalink Manager allows the permalinks to be fully customizable, which means the native slug does not have to be included.

    If this is the case, the isPermalinkEditable() method will always return false because the custom permalink format no longer matches the native permalink format. At the moment, there is not much I can do because of how it works at the core. I will improve it in the next plugin release, so it would be possible to edit the slugs “the standard way” if the custom permalinks end with them.

    If needed, you can also edit the slugs directly from plugin’s UI:
    https://permalinkmanager.pro/docs/plugin-settings/wordpress-slugs-explained/#permalink-manager-edit-slugs

    As regards bulk edit, you can do so only using “Regenerate/reset” and “Find & replace” tools under “Permalink Manager -> Tools”.

    Best regards,
    Maciej

    Thread Starter barnabas1

    (@barnabas1)

    Hi @mbis,

    Thanks for explaining this to me. It’s quite clear.

    For my case, slugs are always part of the permalink and often I need to manually edit the slug to remove non-latin characters from them that don’t render nicely when you share a URL. I don’t know if this is the best practice for SEO, but this is what I do.

    If I’m able to edit the slug on the Gutenberg editor it would cover my need.

    If there was a slug column editor within the URI editor of the plugin it would be superb 🙂 It would provide a total URL management just from a single screen.

    Plugin Author Maciej Bis

    (@mbis)

    Hi @barnabas1,

    Technically, as long as the custom permalink is set-up, it should overwrite all the instances of the native URL with that native slug. I patched the fragment of code that overwrites the native URL and now the slug editor should be displayed as intended. You can download it and reinstall manually using the below URL:
    https://downloads.wordpress.org/plugin/permalink-manager.zip

    Thread Starter barnabas1

    (@barnabas1)

    Hi @mbis,

    Thank for your time doing this!

    I gave it a quick trial and I noticed that even though the slug is updated visually, on the front-end the post permalink is still not updated. Do you notice this as well?

    Enjoy your weekend,

    Barnabas

    Plugin Author Maciej Bis

    (@mbis)

    Hi @mbis,

    That is how it should work, because the slug is used only in the original/native URLs. Permalink Manager dynamically overwrites the original URLs everywhere in the front end with custom permalinks.

    The custom permalinks are stored separately and if they include the native slugs (technically they do not have to), they will not be auto-updated. You can turn this option in the plugin settings:
    https://permalinkmanager.pro/docs/basics/automatically-update-the-permalinks/#available-update-modes

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Edit slugs’ is closed to new replies.