amatsuda/kaminari — pull request #466 by wbyoung (2013-11-11 04:15:20+00:00)
Title: Better page URL generation.

This may be a bit controversial, but I figured it was worth sharing. I was looking at a few of the open issues, and this minor change seems like it may address some older outstanding issues. The change should definitely have someone review it to see if it's something that would be good to move forward with.

One major change is for people creating friendly URLs, this will change the links that Kaminari generates for the first page. This would probably only impact a small percentage of people, but it's worth nothing here (and if this change is taken, maybe in release notes as well).

From the commit:

This adds tests for #197 and may also address issue #182. It does so
by changing the URL generation to remove the page query parameter
when present. If the generated URL uses the page number in the URL
directly, it will always be present. This also leads to a possible
resolution for #44.