Question

I need to get rid of this 'component/virtuemart'. I've added rewrite rule for that to .htaccess but how can i change links that point to this 'component/virtuemart'?

Was it helpful?

Solution

The way Joomla builds routes is based on two parts, the site part and the component-specific part.

In the site part you need to identify the component and usually a view or a task; this is also what you achieve assigning a view to a menu item.

The component-specific part will contain ids and other component specific information.

When a component links to another view / task in the same component, Joomla has to figure out how to render the first part since the menuitem alias of the page that invoked it doesn't match the new request: thus it comes up with /component/virtuemart; but if you create a menu item that shares the same view and component of the link you want to modify, most likely Joomla will be able to pick it up and render your next links as /thehiddenmenualias.

In order to create a hidden menu item, just create a menu with the hidden links, assign it to a module which you will publish in no position. This is sufficient for Joomla to consider it real, although none of your visitors or search engines will be able to access it.

OTHER TIPS

In my case urls started to look like "/catalog/category/item.html" after I chose default Virtuemart view as menu item.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top