News:

Support the VirtueMart project and become a member

Main Menu

router urls incorrect

Started by sadrem, April 25, 2012, 13:02:38 PM

Previous topic - Next topic

sadrem

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
p.s. Do not forget to change message icon to Solved.

uschmi

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...

sadrem

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

p.s. Do not forget to change message icon to Solved.