November Happy Hour will be moved to Thursday December 5th.
Hi, I need a help with creating custom routes in episerver7.
My route definition in MVC would look something like this:
routes.MapRoute(
"ListingPageRoute",
"{controller}/{page}",
new { controller = "ListingPage", action = "Index", page = UrlParameter.Optional }
);
What I want to achieve is just not to show “Index” as action name in page url for the Index action of ListingPageController. So, in MVC routing logic, instead of www.mysite.com/listingpage/index/2 my custom url should be: www.mysite.com/listingpage/2
My default route mapping for episerver is:
var segments = "{language}/{node}/{action}/{page}";
var defaults = new { action = "Index", page = 1 };
I understand that I have to change this episerver custom route definition, but everithing I try give me 404 error.
Please help, thanks :)
Guys, can anybody help me with this routing problem?
Hi, I need a help with creating custom routes in episerver7.
My route definition in MVC would look something like this:
routes.MapRoute(
"ListingPageRoute",
"{controller}/{page}",
new { controller = "ListingPage", action = "Index", page = UrlParameter.Optional }
);
What I want to achieve is just not to show “Index” as action name in page url for the Index action of ListingPageController. So, in MVC routing logic, instead of www.mysite.com/listingpage/index/2 my custom url should be: www.mysite.com/listingpage/2
My default route mapping for episerver is:
var segments = "{language}/{node}/{action}/{page}";
var defaults = new { action = "Index", page = 1 };
I understand that I have to change this episerver custom route definition, but everithing I try give me 404 error.
Please help, thanks :)