Gutenberg – Redirects issue
-
Yoast SEO maintains a list of redirects, and injects them into the wordpress wp_options table for opt name: ‘rewrite_rules’.
However it preferentially decides the ordering of those rewrite rules.
And if you know anything about regular expressions, that is CRITICAL.In this case, Gutenberg runs it’s SAVE operation for a page over the url: /wp-json/wp/v2/posts
Which gets picked up by one of the carte blanche yoast rules.
ie.. The infamous “Update Failed” red warning banner.To fix it, you have to edit the wp_options table entry manually by converting serialized PHP into JSON, moving the wp-json rules (there’s 4 of them) back to the top where they SHOULD be, and re-serializing it to be updated into wordpress options..
I wouldn’t be here if I only had to do that once.
Unfortunately Yoast SEO REBUILDS the entire array each time you delete a page/post (since it forces you to inject a redirect for the “loss” of page).
So this is a constant tedious struggle.Can you provide any support for this please? Anything?
- The topic ‘Gutenberg – Redirects issue’ is closed to new replies.