Support » Plugin: Gutenberg » How to change permalink?

  • Resolved nelsonbase

    (@nelsonbase)


    There does not appear to be any way to edit the permalink for a post or page. This is necessary functionality that already exists in WordPress but which seems to have been omitted from Gutenberg. How can i change permalinks?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Click on the title of the post in the editor, after the initial draft has been saved. The permalink editor will then appear above the title area.

    Can I ask why we have to save a draft before being able to specify a stub? With the ‘classic’ editor, we have a permanently visible field, which makes a lot more sense. Now it’s so well hidden, I will forget to complete it.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    If the post isn’t saved to the database yet, then it doesn’t have a “slug” available to be edited.

    Basically, the initial creation of the slug for the permalink only happens when the post is saved for the first time, because the slug needs to be unique so it has to check against other slugs already in the database.

    I am not talking about editing an existing slug; I am talking about specifying a preferred slug before the record is written to the database.

    In the classic editor, I am able to specify a preferred slug (in the ‘slug’ field) before the database record is created. When I hit Save, that slug is honoured, and written to the database (just like any other field).

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    I am not talking about editing an existing slug; I am talking about specifying a preferred slug before the record is written to the database.

    WordPress does not work that way. The initial slug is produced from the title, and then checked against the existing slugs to see if there is a conflict, in which case a number is added to the end to prevent the conflict.

    Basically, you don’t choose the initial slug even in the current system. This has nothing to do with the editor, it’s how WordPress works.

    In the classic editor, I am able to specify a preferred slug (in the ‘slug’ field) before the database record is created.

    Nope. Doesn’t work that way. In the current editor, you type in the title, then the Permalink field appears with the link made from the title. This means that in the background, the auto-draft saved. That slug is in the database. It may not be as obvious, but this is the exact same behavior.

    There is no way to input a slug or edit the permalink before the post is saved to the database.

    When I click the title field at the top of the post as Otto recommends what I see is:

    link symbol (copy the permalink)
    permalink URL (takes me to page preview)
    Change Permalinks button (goes to Permalink Settings …wp-admin/options-permalink.php)

    There is no edit button.

    I’ve tried many different ways to change the permalink of a page that was just created but it keeps reverting back to what it was.

    We are using WordPress 5.0.3 with Gutenberg (and aren’t using any plugins to add/remove functionality to Gutenberg).

    • This reply was modified 8 months, 1 week ago by  StephenEquus.
    • This reply was modified 8 months, 1 week ago by  StephenEquus.

    I haven’t had this issue before until after 5.0+

    StephenEquus

    (@stephenequus)

    I’ve decided to change the URL through the post name in phpMyAdmin.

    Moderator Marius L. J.

    (@clorith)

    This topic is more than 5 months old, if you are experiencing issues at this time I would recommend opening your own topics.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to change permalink?’ is closed to new replies.