How to use with MVC Area?
selaromdotnet opened this issue · 1 comments
Hi, forgive me if this is obvious, but I couldn't find any info about it after searching...
I updated this from the obsoleted nuget package but suddenly the paging in my areas no longer works. I tried searching the wiki to see if there was an example to follow but didn't find any info.
This is what I had before:
@Html.PagedListPager((IPagedList)Model, page => Url.Action(ViewData["Action"].ToString(), new { page, area = "Admin"}))
but the link for pages is coming up like this: https://localhost:44326/Events?page=2&area=Admin
instead of this: https://localhost:44326/admin/events?page=2
is there a new way of specifying the area?
thanks!
I think something wrong in web app configuration. I just added example for area-enabled web app and seems all works fine.