Hello,
Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.
This is a known issue with Polylang where you will not be able to use the Remove Category Base option.
We have been trying to collaborate with them for a few years but left the conversation when they refused to add the compatibility even though they have it for several other plugins (some of them have a smaller user-base compared to RM)
https://github.com/polylang/polylang/tree/master/integrations
You can check their public repository where we created a pull request (linked to from your opening post) a few years back and we would have maintained it (though that would not have happened ideally since we do not make changes in the plugin that breaks the compatibility).
Disappointingly, the compatibility needs to be added in their plugin as they added for other SEO plugins. We are more than committed to making that happen and always keep it updated, of course, if their team agreed and wanted to collaborate.
With that said, you can check the following page for alternatives that are 100% compatible with the Rank Math SEO plugin
https://rankmath.com/compatibility/
https://rankmath.com/compatibility/?s=Translate&post_type=rm_compatible
Hope that helps. Thank you.
Hust to let you know here it the response from Polylang
Good morning,
I don’t really have a solution as such but I know that Yoast SEO has this feature as well and so far it seems to work well, I suppose they have coded it differently than Rank Math SEO and it fits WooCommerce’s expectations.
Also there is a compatibility with Yoast SEO integrated to Polylang that we maintain.
Would you consider switching to Yoast SEO?
As i asked for a refund for polylang they send me these info:
Actually the issue you are experiencing is not linked to Polylang but rather to what the removal of the product category base does in a multilingual WooCommerce context.
As explained in their documentation => https://docs.woocommerce.com/document/removing-product-product-category-or-shop-from-the-urls
What happens, from a technical perspective, when the category base is removed is that a set of rewriting rules per term must be coded. It is the only way to make it work without causing conflicts. This is what Yoast SEO and the plugin “No category base” did for WordPress base category.
We were able to develop a compatibility for it to work in a multilingual context because they followed these “rules”.
Now, it seems that Rank Math SEO (when removing the category base) doesn’t create the rewriting rules for the product categories terms.
There unfortunately is nothing we can do on our side to make it work in a multilingual context unless the authors of the plugin decide to go ahead and code a set of rewriting rules for product categories terms. Then we would be able to rely on this and develop a compatibility.
The authors of Rank Math SEO can have a look at what “Yoast” and “No category Base” did to write their set of rewriting rules.
https://github.com/Yoast/wordpress-seo/blob/trunk/inc/class-rewrite.php#L122
https://github.com/codeforamerica/cityhow/blob/master/wp-content/plugins/wp-no-category-base/no-category-base.php
Can we do smth?
Hello,
Thank you so much for sharing this information from Polylang support. Allow me to pass this information to our developers and we should get back to you with advice.
In the meantime, please don’t hesitate to let us know if you need our assistance with anything else.
We appreciate your time and patience on this one.
Thank you.