Issue with WPML and WooCommerce “remove category base”

#578820
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    For initial troubleshooting, please try to implement the following filter on the website to remove our custom product redirection: https://rankmath.com/kb/filters-hooks-api-developer/#disable-custom-product-redirection

    And here’s how you can add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how this goes.

    Thank you.

    Hi, thank you for your reply.

    But I’m afraid I did not get your suggestion… you gave me a snippet to disable the redirection, but I need to have it enabled, not disabled πŸ™‚

    Anyway, I’ve searched also on WPML side and it seems it’s known comaptibility issue:
    https://wpml.org/errata/rank-math-seo-turning-on-strip-category-base-causes-issues-with-secondary-languages/

    It seems the issue can be fixed by NOT translating the category, product or product-category slugs. I’m gonna try it and let you know if it worked!

    Hello,

    Sure, let us know how this goes.

    The redirect helps to prevent 404 or redirect loop when translating the URLs, and the remove base option is enabled.

    If it’s still not working, the feature to remove the category base will not work if the base is translated.

    Please try removing the translations for the base on your WordPress Dashboard > Settings > Permalinks, and check again the link.

    Looking forward to helping you.

    Thank you.

    Hi, the workaround worked πŸ™‚
    I’ve removed “product-category” base translation and now the category base is removed also for english (aka the secondary language).

    So, my issue is fixed!
    Thank you for your help!

    Hello,

    We are super happy that you are able to sort it out. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Sure! I’ve posted a review just few minutes ago πŸ™‚
    Thanks again and keep up the good work!

    Hello,

    You’re very much welcome and we deeply appreciate your feedback.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘Issue with WPML and WooCommerce “remove category base”’ is closed to new replies.