VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: sadrem on April 25, 2012, 13:02:38 PM

Title: router urls incorrect
Post by: sadrem on April 25, 2012, 13:02:38 PM
If we create menu link with type "VirtueMart » List Orders" and have category module on this page.
Category module produces incorrect unreachable ulrs.
for instance: (flow)
1) click on menu link url http://mysite.com/orders (module category list defined on all joomla pages)
2) we get urls for categories like http://mysite.com/orders/jewelry/earrings
and it should be http://mysite.com/component/virtuemart/jewelry/earrings
joomla 2.5.4
virtuemart 2.0.6
Title: Re: router urls incorrect
Post by: uschmi on April 25, 2012, 13:18:41 PM
A workarround would be either to create menu items manually for each product or to use a third party tools to do that.
Then, your links will work fine.

For me, this is a Joomla bug and not VM-related...
Title: Re: router urls incorrect
Post by: sadrem on April 25, 2012, 13:42:50 PM
Thank You. I have found the solution.
There are 2 options:
Option 1: Create menu link with type "VirtueMart » Front page" . Define it to be "Default Page" in joomla. After that Your site homepage will be virtuemart homepage. You will see nice urls like http://mysite.com/jewelry/earrings
Option 2: Create "hidden menu" in joomla. Create menu item under that menu with type "VirtueMart » Front page" and define alias for that, for example "shop"
Now You urls like http://mysite.com/shop/jewelry/earrings