Important

Okay
  Public Ticket #1498135
M2 Interrnal Magento URLs instead of SEO URLs
Closed

Comments

  •  3
    Steve started the conversation

    The Megamenu is dynamically pulling incorrect category URLs for the main menu items. It pulls the internal category urls like: https://www.artificialplantsunlimited.com/catalog/category/view/s/living-walls/id/143/ instead of the SEO urls: https://www.artificialplantsunlimited.com/green-walls.html

    This issue comes and goes and seems to be periodically fixed by clearing cache. I don't know if this issue is caused by cron indexing urls or something else but it is a serious SEO issue

  •  1,319
    Land of replied

    Hello Steve,

    Have a nice day!

    I see the problem seem because the category links of your site did not generated SEO rewrite links.

    Or maybe the root category of your site was not set to right main website stores. 

    I just checked the site and see there links are correctly. Did you resolved it?

  •  3
    Steve replied

    Hello, this problem comes and goes with no particular consistency. Enabling or disabling the menu cache will often cause the issue to be temporarily fixed on 1 or 2 of the domains and broken on 1 or 2 of the other domains (there are 4 sites configured in this multi-site Magento installation).

    I have verified that each store has the correct root category assigned to it in Stores->All Stores. 

    I have also verified that each of the 4 menus for the different stores are set to the correct store view in Venustheme->Manage Menus.

    Your suggestion "category links of your site did not generated SEO rewrite links" seems likely to be the issue although I do not know how to test this. 

  •  3
    Steve replied

    We are currently switching all of our megamenu links over to be static instead of dynamic since there are issues. So the problem may appear to be fixed - it is not and we would still like this corrected. Are you able to reproduce this issue or has it appeared in the past?

  •   Land of replied privately
  •  3
    Steve replied

    No, they are not being rewritten at all - we are using the static Custom Link type. See previous: "We are currently switching all of our megamenu links over to be static instead of dynamic since there are issues. So the problem may appear to be fixed - it is not". I have attached a screenshot of this menu setting i'm using as a workaround titled links-not-rewritten.jpg.

    I want to be able to use the Category Link type but it does not properly rewrite urls. I have attached a screenshot of this menu setting title dynamic-category-link.jpg

    I did a code comparison between the live StoreCategories.php and the file you supplied and they are identical. So this file will have no effect. I have supplied a screenshot of this titled identical-code-compare.jpg.

  •   Land of replied privately