I started playing around with Tridion and DXA just recently, and I'm having problems to understand how custom routes work.
I have a Component Template which has its own DXA view, view model, controller, and action. I've created the correspondent objects in Tridion and the classic examples work properly.
I need to be able to configure custom routes to the action in order to receive parameters in the URL (eg. /books/{genre}/{year}
) but I couldn't find how. Can you help me there?
Reading some other questions here I found some people suggesting to do the routing in Global.asax
. This works, but the result is the rendering of the Component Template view only. I need to be able to route the whole page, being able to read the URL parameters.
Looking forward to your help!