Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom slug/permalink is changed after an update of the post #10004

Closed
benoitchantre opened this issue Sep 18, 2018 · 10 comments
Closed

Custom slug/permalink is changed after an update of the post #10004

benoitchantre opened this issue Sep 18, 2018 · 10 comments
Labels
[Feature] Permalink The permalink of a post or page and the experience of setting or editing it [Status] Not Applicable Issue outside Gutenberg, is not a bug, or is a support request. [Type] Bug An existing feature does not function as intended [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.

Comments

@benoitchantre
Copy link
Contributor

benoitchantre commented Sep 18, 2018

Describe the bug
When you save a post that has a custom slug, the slug is reset to to sanitized version from the title when you save the post.

To Reproduce
Steps to reproduce the behavior:

  1. Change the slug of a page using Quick Edit
  2. Open the page, do some changes in the content
  3. Save your changes
  4. See the page: the URL doesn't contain the custom slug you set previously

Expected behavior
The custom slug should be kep.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: OX X 10.13.6
  • Browser: Firefox 62

Additional context

  • Gutenberg 3.8
@designsimply designsimply changed the title Custom slug is changed after an update of the post Custom slug/permalink is changed after an update of the post Sep 18, 2018
@designsimply designsimply added the [Type] Bug An existing feature does not function as intended label Sep 18, 2018
@designsimply
Copy link
Member

Thank you for reporting this! I think it can be consolidated with #7002. Please let me know if you disagree and we can re-open here.

@designsimply designsimply added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Sep 18, 2018
@benoitchantre
Copy link
Contributor Author

@designsimply I'm not sure it's a duplicate, but they are related. #7002 describes a temporary wrong value for the slug when you reset it, until you save the post. This one is about an unwanted change of the slug by Gutenberg when you save the post (the custom slug is replaced by the default generated from the title).

@designsimply designsimply added the [Feature] Permalink The permalink of a post or page and the experience of setting or editing it label Nov 6, 2018
@designsimply
Copy link
Member

Okay. Notes for testing:

  • Check to see if you can save a custom slug when not using Quick Edit.
  • Test all sorts of ways of changing the slug using Quick Edit and make sure they work when the editor is opened.

@designsimply designsimply reopened this Nov 9, 2018
@designsimply designsimply added Needs Testing Needs further testing to be confirmed. and removed [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed labels Nov 9, 2018
@benoitchantre
Copy link
Contributor Author

@designsimply It seems that this issue was caused by Polylang Pro.

@earnjam
Copy link
Contributor

earnjam commented Nov 18, 2018

Closing as an issue with the plugin and not Gutenberg.

@earnjam earnjam closed this as completed Nov 18, 2018
@earnjam earnjam added [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes. [Status] Not Applicable Issue outside Gutenberg, is not a bug, or is a support request. and removed Needs Testing Needs further testing to be confirmed. labels Nov 18, 2018
@bplus78
Copy link

bplus78 commented Nov 20, 2018

Dear Team,

I got exactly the same issue.

From the quick editor the slug can be correctly edited, but when i use the Guttenberg editor, he change automatically the slug by a old article.

This bug kill actually a big parts of my SEO !

Furthermore, you seems to have the same issue with SEO pluggin in Guttenberg editor.

Can you check ASAP quickly please ?

Thanks in advance

Best Regards

Robert

@SargentoKero
Copy link

SargentoKero commented Dec 18, 2018

Same error here, i have yoast seo pro if you need to know. But i tested without it and the error is the same.

@atkoehler
Copy link

Closing as an issue with the plugin and not Gutenberg.

@earnjam Also have this issue still, when author edits a page they must submit for review (rather than update) which is a separate issue. However, upon submitting for review the permalink URL is changed to the default value rather than the previously set value when the page was published.

This is an issue with Gutenberg not a plugin.

@earnjam
Copy link
Contributor

earnjam commented Feb 13, 2019

@atkoehler By default the author role cannot edit pages. They can, however, publish and edit their own posts. If your author role is submitting page edits for review, then something is manipulating the user role capabilities.

The contributor role cannot publish anything, but can submit posts for review. You are correct it appears to wipe the saved custom slug when submitted for review. That is a separate issue from the one originally described here, so I've created a new issue to track that in #13857.

@sim1-81
Copy link

sim1-81 commented Sep 14, 2020

i also have this issue for my custom post type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Permalink The permalink of a post or page and the experience of setting or editing it [Status] Not Applicable Issue outside Gutenberg, is not a bug, or is a support request. [Type] Bug An existing feature does not function as intended [Type] Plugin Interoperability Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
Projects
None yet
Development

No branches or pull requests

7 participants