Woocommerce Remove Category Base

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I have escalated this issue to our dev team and we will be getting back to you shortly.

    Looking forward to helping you. Thank you.



    Our Development team is working on this issue and they will be releasing an update soon.

    For now, to fix it on your site please replace the can_redirect function on line 102 in seo-by-rank-math/includes/modules/woocommerce/class-product-redirection.php with the following code:

    private function can_redirect() {
            if (
                $this->do_filter( 'woocommerce/product_redirection', true ) &&
                ( ( Helper::get_settings( 'general.wc_remove_product_base' ) && is_product() ) ||
                ( Helper::get_settings( 'general.wc_remove_category_base' ) && is_product_category() ) )
            ) {
                return true;
            return false;

    That should fix the issue on your site.

    Thank you.

    • This reply was modified 1 week, 4 days ago by  Pratik.
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this ticket.