I've been reading around in the MVC documentation about Hijacking routes. However I'm still struggling with the following.
I setup some content and I successfully hijacked the route "/experiences/skydiving/". Where the document type is 'Experience" and the model of experience skydiving is visible in the Index method of ExperienceController.
Now I would like to add a route so that I'm able to handle "/experiences/skydiving/buy-as-gift/". It should land on the same documentid as in "/experiences/skydiving/".
I hope someone can make me an example on how to add the extra Route.... because the existing routes are handled by Umbraco, probably /umbraco/RenderMvc/{action}/{id}.
extending existing routes in MVC
I've been reading around in the MVC documentation about Hijacking routes. However I'm still struggling with the following.
I setup some content and I successfully hijacked the route "/experiences/skydiving/". Where the document type is 'Experience" and the model of experience skydiving is visible in the Index method of ExperienceController.
Now I would like to add a route so that I'm able to handle "/experiences/skydiving/buy-as-gift/". It should land on the same documentid as in "/experiences/skydiving/".
I hope someone can make me an example on how to add the extra Route.... because the existing routes are handled by Umbraco, probably /umbraco/RenderMvc/{action}/{id}.
is working on a reply...