martijnboland / MvcPaging

ASP.NET MVC Paging HTML helper
https://blogs.taiga.nl/martijn/2008/08/27/paging-with-aspnet-mvc/
MIT License
290 stars 144 forks source link

Last page calculation fix #54

Closed subeax closed 8 years ago

subeax commented 8 years ago

This is a fix for strange behaivor that you reproduce with next steps:

1) Run MvcPaging.Demo
2) Go to "Paging with a custom page route value key"
3) Click on last page "52" just after "..."
4) You'll see that page 53 appears.

Also wrong tests are fixed. They expected to have two pages at the end right after "...", but there should be only one page.

martijnboland commented 8 years ago

Applied, thanks!

martijnboland commented 8 years ago

Created new 2.1.5 release that contains this fix. Thanks again!

subeax commented 8 years ago

Thank you for this package. Really helpful.