I am using this custom route to enable paging in my index method in Home controller:
routes.MapRoute( _
"HomePage", _
"Home/Index/{page_num}", _
New With {.controller = "Home", .action = "Index", .page_num = ""} _
)
But when I navigate to any page for example page 2, actionlinks append the page number to the url:
Html.ActionLink("Home", "Index", "Home")
will render _http://localhost/Home/Index/2 instead of _http://localhost/Home/Index
But I've noticed that action methods without parameters renders correctly: _http://localhost/Home/About