Resolved
Reported for: WPML SEO 2.0.1
Overview of the issue
YOAST SEO Premium plugin creates a redirection when a post slug changes. However, this feature is conflicting with WPML and redirects to the homepage under two scenarios:
- If you trash a translated post then restore it.
- If you publish a post submitted for review by a non-admin user.
Workaround
Please, make a full backup of your site before proceeding.
Then, add this code to you functions.php file:
This will turn off Yoast SEO’s feature for automatic redirect on slug change.
I noticed that the filter name should be
Yoast\WP\SEO\post_redirect_slug_change
.See the Yoast documentation: https://developer.yoast.com/customization/yoast-seo-premium/disabling-automatic-redirects-notifications/.
Hey Priscilla,
Thank you very much for your feedback, you are totally right, WP was stripping the backslashes.
It should be fine now.
Thanks again.