Breadcrumbs leading to wrong URL

#493323
  • Resolved skordic8
    Rank Math pro
    Content AI Starter

    Hello,

    I have just come up with an issue in my food blog. Whenever I access my “recipes” archive through the breadcrumbs of any given recipe post, it shows a different URL than when I navigate the archive directly. Moreover, when i access it through the breadcrumbs and then click on any other recipe category it doesnt show any content at all.

    Precisely, this is what happens:

    I’m on a recipe post, for example “The best carrot and coriander soup”. On the breadcrumbs, I click on the category this recipe belongs to, “Soups & Stews”, which leads me to my recipes archive, but with a different URL(/recipe-category/soups-stews/) than if I access it through the main menu (/recipes/?jsf=epro-archive&tax=recipe_category:27).
    From there, whenever I click on any other recipe category (breakfast, dessert, etc) it doesn’t show any of my other posts. Instead, I get this message: “It seems we can\’t find what you\’re looking for.”
    What’s even stranger, is that on the Croatian language site the same thing happens, with the addition that if I’m following the breadcrumb pathway with the different URL, and then I click on RECIPES on the main menu, it gives a 404 error.

    It feels to me like there may be an incompatibility with the breadcrumbs feature and the Recipes custom post type, or that maybe I haven’t set up RankMath they way I should have.
    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting Rank Math for help with your recipe category URLs not displaying correctly.

    I checked your website and the category URLs with the structure like /recipe-category/soups-stews/ are correct. The other URL structure like /recipes/?jsf=epro-archive&tax=recipe_category:27 is from the Jet Smart Filters plugin. Please contact their support for help with 404 errors related to those links. As far as I can tell, the normal recipe category URLs are not getting 404 errors.

    Hope that helps. Please let us know if you have questions.

    skordic8
    Rank Math pro
    Content AI Starter

    Hi! Thanks a lot for the reply!

    You are right, the normal recipe category URL’s aren’t getting any 404, but they’re not showing the content on the other categories either when navigating the recipes archive.
    The thing is that the way everything is setup now, it would be much easier to change the breadcrumbs URL’s than all the other ones coming from the Jet Smart Filters. Is there a way to edit those breadcrumb URL’s or they cannot be changed?

    Thanks again for your help 🙂

    Nigel
    Rank Math business

    Hello,

    Changing the Rank Math breadcrumb URLs can be done but it would need advanced customization that is beyond the scope of our support. You would need to create an implementation of our filter to change breadcrumb items: https://rankmath.com/kb/filters-hooks-api-developer/#change-remove-breadcrumb-items

    Hope that helps. Please let us know if you have questions.

    skordic8
    Rank Math pro
    Content AI Starter

    Great! Thanks again for your help 🙂

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Breadcrumbs leading to wrong URL’ is closed to new replies.