Link to category not working when SEO is enabled

Started by raimiuxas, May 25, 2022, 21:12:39 PM

Previous topic - Next topic

raimiuxas

I have situation:
Category1
     |__Sub category 1
Category2
     |__Sub category 2
I created two diferrent menu with types:
1. Menu item name: AAA. Type: Virtuemart-->Category Layout. Select a Category - empty
2. Menu item name: BBB. Type: Virtuemart-->Category Layout. Select a Category - Category 1, Sub category 1 and etc. (total 4 menu item)
When i disable in virtuemart configuration "SEO Disabled" to YES, url works fine (I can open AAA-->Category1-->Sub category 1) . But when "SEO Disabled" to "No" i can open only "AAA" from menu. I see two category: Category 1 and Category 2 with url to AAA (correct url aaa/category1/subcategory1)
J 4.1.4
VirtueMart 4.0.2 10661

SEO disabled
/aaa/view/category/virtuemart_category_id/23.html

SEO enabled:
/aaa.html

pinochico

Oh man, Who creating two duplication menu for VM category and next report error????

Sorry, your mistake
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

raimiuxas

#2
Ok - for fun i deleted dublicated menu. Now i have only BBB menu. I can select Category 1-->Sub category 1 from menu and i see products. this scenario is working (this scenario worked with two menu)
When i select and click on Category 1 i can't click on Subacategory 1 (see attachment).

Btw: i have website with dublicate menu and it's working. but versions is defferent J3.10.4 and VM 3.6.10. As i remember i had same problem but my solution was like this. J4.x and VM4.x is missing this item (solution for J3x.JPG)

raimiuxas

#3
This is my solution:

Milbo

Wow, that is really interesting raimiuxas. And your "doubled" menu items are a normal use case. One time you show just all products and then you have some "shortcuts".
Strict mode makes a difference, interesting. But really disturbing is, that you had to disable the category routing cache, hmmm.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

kovacshazi

When I create a menu item for the category, the URL is broken
Look in the top menu under the menu item "Irányjelzők", it's a virtuemart category
If I select a subcategory here (DOB-040), it already gives me a bad URL:
http://2022.autolampafutar.com/autolampa-webaruhaz/dob-040
It does not have the "iranyjelzok" url part.

If I go to the shop home page (Autólámpa webáruház) then the other categories are fine.
http://2022.autolampafutar.com/autolampa-webaruhaz?clearCart=0
Here for example when selecting the category "Ködlámpák" the subcategories contain the full category tree
http://2022.autolampafutar.com/autolampa-webaruhaz/kodlampak
Going down one more level: http://2022.autolampafutar.com/autolampa-webaruhaz/kodlampak/ft-111-led
This is perfect.

But the "Compasses" category in the top menu is wrong: http://2022.autolampafutar.com/autolampa-webaruhaz

I have tried the previously suggested setting but it does not work for me.

mawe65

I ran into the same problem. Does anyone found a solution for this?

Kind regards

Martin

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/