I have a controller action "events/index/index" and a menu link to this page in the navigation menu. I added this menu link as a node with the url key "events". Now I want to move this menu link down one level (so it becomes visible in a dropdown), but the link breaks because it now links to /xyz/events instead of /events. Is there any way I can let Magento know it shouldn't prepend the parent url? Or is the only option to create a rewrite rule?
-
1I think the best option in this case is to create a rewrite rule.– ChrisMay 14, 2013 at 9:46
-
1@Chris, that would work, but it really becomes chaotic and unmanageable in a large multi store / multi language environment.– Jake A. SmithMay 15, 2013 at 16:17
-
1@JakeA.Smith Of course this isn't suitable as a final solution for a large amount of routes. But the question involves just one route.– ChrisMay 16, 2013 at 11:28
Add a comment
|
1 Answer
What you've done here is effectively 'game' the URL key system by giving it a proper route to resolve prior to the CMS route being resolved.
The more proper way of handling this is to create the CMS link via layout xml within a layout file of the module which defines events/index/index
route/controller/action.
Best of luck