Problem with Remove Parent Slugs for Products

#162524
  • Remove parent slugs from category URL.
    default: /product-category/accessories/action-figures/ – changed: /product-category/action-figures/”

    I am having difficulty getting the ‘Remove Parent Slugs’ feature to work correctly, to me it seems there is a bug here.

    Once I enable this setting, see results below

    When I visit Child Category (works perfect)
    Actual: site.com/child-cat/
    Expected: site.com/child-cat/

    When I visit a product in Child Category (broken)
    Actual: site.com/parent-cat/child-cat/product-name
    Expected: site.com/child-cat/product-name

    I believe this setting should remove the parent category slug from the product permalink also?

    Any help would be much appreciated.

    Thanks,
    Robert

Viewing 6 replies - 1 through 6 (of 6 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.

    That doesn’t seem like the expected behavior. We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Thank you, and we really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi Reinelle,

    I have provided the access now via Sensitive Data, would appreciate if you could let me know if there is a bug or I have an incorrect setting.

    Thank you.

    Regards,
    Robert

    Hello,

    Thank you for that additional information, and sorry for the delay.

    Upon further investigation and confirmation with our dev team, the option Remove Parent Slugs in Rank Math only works for category pages (archive pages).

    If you wanted to remove the parent slug in your product pages, you can do that using permalinks. Here’s an article that might be helpful to achieve that.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance.

    Okay, thanks for confirming Reinelle.

    Regards,
    Robert

    Anas
    Rank Math business

    Hello,

    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.

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

The ticket ‘Problem with Remove Parent Slugs for Products’ is closed to new replies.