Page 1 of 1

URL changes if I include a menu item for category list

Posted: 09 Feb 2023, 16:49
by gestor
Hi,

So I've created a menu item that list categories. (Categories View (Category list layout - default view)) and call it SPECIAL DEALS;
In the option tab of this menu item i choose to display only 2 categories;
These two categories are restricted to registered users;
Users belong to different customer groups;

When a user is in the shop the and it is not logged, the URL is ../cms/index.php/en/shop;
But when user is logged, starting to browse categories, the URL changes to ../cms/index.php/en/special-deals/1-baby-food;

And going back categories it will display only the 2 initial categories that i've created, but not all categories, since the URL now is ../cms/index.php/en/special-deals/;

If i disable the menu item then the URL is back to 'normal' /cms/index.php/en/shop;

Am i doing some kind of conflict?

Re: URL changes if I include a menu item for category list

Posted: 09 Feb 2023, 17:52
by Jan
Hi, yes, it is recommended to use only one menu link for items which are in tree (categories -> category -> product) so there is only one format of menu link.

In case you have e.g. menu link to categories (which is recommended) and you need to create other menu link e.g. to one product - it is better istead of creating menu link to product just navigate in frontend from categories to category to product - copy the link from URL bar and create menu link as type "System Link - URL" and paste there the fixed URL:

Image

In this case, there wil be no two different menu links with two different menu link format.

Jan

Re: URL changes if I include a menu item for category list

Posted: 09 Feb 2023, 19:04
by gestor
Thanks Jan.

Using your great tips i found out a way to workout a solution:

- Instead of listing categories with a menu item i choose to list - Category View (Product list layout), so it does not interfere with the structure;

- I created just one category called SPECIAL DEALS with sub categories PROMO1 and PROMO2;

Done!

Re: URL changes if I include a menu item for category list

Posted: 09 Feb 2023, 19:16
by Jan
Ok