wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Permalink doesn't match Slug (parent missing for pages & custom post types)

Open dk-wordpress opened this issue 6 years ago • 1 comments

  • [x] I've read and understood the contribution guidelines.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

Hi there!

There is a problem with YOAST SEO permalinks on a preview snippet: it does not display parent slug for pages and custom post types.

I have blank WP 5.4 installation with YOAST SEO 13.4.1, no additional plugins were installed, no custom code were written

Tested on all standard themes: Twenty Twenty, Twenty Nineteen, Twenty Seventeen

Permalinks options is set to: /%postname%/

Please describe what you expected to happen and why.

Preview snippet should display parent page slug, since this is a child page:

http://prntscr.com/rwn232

How can we reproduce this behavior?

  1. Create new page
  2. Set this page as child of any page
  3. Update page

Technical info

  • If relevant, which editor is affected (or editors):
  • [ ] Classic Editor
  • [x] Gutenberg
  • [ ] Classic Editor plugin
  • Which browser is affected (or browsers):
  • [x] Chrome
  • [x] Firefox
  • [ ] Safari
  • [ ] Other

Used versions

  • WordPress version: 5.4
  • Yoast SEO version: 13.4.1
  • Gutenberg plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:
  • Tested with theme: Twenty Twenty, Twenty Nineteen, Twenty Seventeen

dk-wordpress avatar Apr 10 '20 09:04 dk-wordpress

Hmmm, missed this report when it was submitted. Though there are already multiple issues present in regards to displaying the correct slug in the preview:

  • https://github.com/Yoast/wordpress-seo/issues/3514
  • https://github.com/Yoast/gutenberg/issues/67
  • https://github.com/Yoast/wordpress-seo/issues/11537

So to prevent widespread of the same issue over multiple reports, I am closing this one.

Djennez avatar Apr 16 '20 07:04 Djennez