Skip to content

When Custom Permalink plugin is active and if the post is saved as draft in the block editor the Yoast SEO tabs ( in metabox) won't work until we refresh the page #22809

@josevarghese

Description

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

Please give us a description of what happened

If the Custom Permalink plugin is active and a newly created post is saved as a draft, the Yoast SEO tabs do not work until the edit post page is refreshed after saving the draft. This issue occurs only with the post metabox, and the tabs within the Yoast SEO sidebar panel work fine.

To Reproduce

Step-by-step reproduction instructions

  1. Install the Yoast SEO plugin and the Custom Permalink plugin on the website
  2. Create a new post and ensure that the post editor is in the block editor
  3. Add a post title and some content
  4. Save as draft
  5. Then try to click on the tabs like Readability, Social, and Schema
  6. You can notice that the tabs are not working and showing the console error as

https://xyzzzz.com/wp-admin/post.php?post=1252760&action=edit#wpseo-meta-section-schema
at I.error (jquery.min.js?ver=3.7.1:2:11769)
at Y (jquery.min.js?ver=3.7.1:2:17234)
at re (jquery.min.js?ver=3.7.1:2:20008)
at ce.I (jquery.min.js?ver=3.7.1:2:7520)
at ce. (jquery-migrate.min.js?ver=3.4.1:2:2898)
at e. [as find] (jquery-migrate.min.js?ver=3.4.1:2:1582)
at ce.fn.init.find (jquery.min.js?ver=3.7.1:2:21991)
at ce.fn.init (jquery.min.js?ver=3.7.1:2:22483)
at e.. (jquery-migrate.min.js?ver=3.4.1:2:2438)
at new e. (jquery-migrate.min.js?ver=3.4.1:2:1582)

Expected results

  1. The tabs of the Yoast SEO metabox need to work fine without any issues

Actual results

  1. The tabs are not working in the Block editor, however the sidebar Yoast SEO panel works fine.

Screenshots, screen recording, code snippet

If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.

Technical info

  • If relevant, which editor is affected (or editors):
  • Block Editor
  • Gutenberg Editor
  • Elementor Editor
  • Classic Editor
  • Other:
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other:

Used versions

  • Device you are using:
  • Operating system:
  • PHP version:
  • WordPress version: 6.9
  • WordPress Theme: Twenty Twenty Four
  • Yoast SEO version: 26.5
  • Gutenberg plugin version:
  • Elementor plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions