VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: zanardi on September 03, 2016, 15:10:17 PM

Title: Router conflicts between category and product.
Post by: zanardi on September 03, 2016, 15:10:17 PM
Hello! This is Joomla 3.6.2 and VirtueMart 3.0.16.

The issue: if I have a category and a product with the same alias, any menu link pointing at the category gets redirected instead. This happens even with SEO option "Use product and category ID" enabled.

Any suggestion to fix this, or is it a known issue?

EXAMPLE

* I have a category with name "Car" and ID 13
* I have a product within this category with name "Car" and ID 1211
* Base shop menu item is "Shop"
* If I open page /shop/13/car I'd expect to see the category page, instead I see the product page

ADDITIONAL INFO

* In SEO options I only enabled "Use product and category ID".
* I tested already other options but no one seems to help.
* Confirmed on two different sites.

Thank you for your time.
Title: Re: Router conflicts between category and product.
Post by: jjk on September 09, 2016, 21:46:41 PM
Quote from: zanardi on September 03, 2016, 15:10:17 PM
* If I open page /shop/13/car I'd expect to see the category page, instead I see the product page

Hi again - long time no see here!  ;)
Just from reading what you wrote - I wonder why you would expect to see the category page, because /shop/13/car means /shop/category(13)/product(car) in your url.
Title: Re: Router conflicts between category and product.
Post by: Milbo on September 12, 2016, 19:34:48 PM
Please use the vm3.0.17.6, I think it has some fixes in this area.