double category view = changed canonical url for products

Started by welrachid, November 19, 2018, 14:43:06 PM

Previous topic - Next topic

welrachid

Hi guys
Im not sure this is a feature or a bug.. so since i havent had any responses in a couple of days in the SEF category im wondering if this is an intended thing or a bug.
https://forum.virtuemart.net/index.php?topic=141478.0

To recap: I have 2 frontpages with one named sitemap (found at url /sitemap) that shows things in a certain way (including all subproducts) and the other (homepage) found at /

Products should be linked in regard to frontpage /category/subcat/prod but somehow sometimes they are hijacked from sitemap so they become /sitemap/category/subcat/prod

My current solution i will be working toward is to make dummy page with a selfmade module or something that runs though all products and lists them.. but im not sure if this is a bug or feature..

thanks
Wel
Best regards,
Wel

Studio 42

If the sitemap menu link is a Virtuemart menu, then you can have this problem.
I wrote this sitemap https://shop.st42.fr/en/tools/virtuemart-2-sitemap.htm, you can convert it or add another view to render as HTML in a page if you have some PHP knowledges.

welrachid

Hi Studio42
Thanks for response.

I've already made a module that does what i want..

i use a view from mod_virtuemart_category to iterate over categories and retrieve all products and then sorts them all by their name in my view.
Then display it all in a three column view.
i was just wondering if there was a more general issue.
This actually means that the category view menu-item is a singleton thing, which only must exist once, because it can break stuff otherwise.
Best regards,
Wel