#256 ✓resolved
phatmann

Double page params when using merb 1.0.6.1

Reported by phatmann | December 21st, 2008 @ 07:30 PM

In merb 1.0.6.1, the page links are not being formed correctly after browsing to page 2, 3, etc. The links end up with double page params:

/foo?page=2&page=5

The fix is to change line 8 in merb.rb

params = @template.request.params.except(:action, :controller).merge(:page => page)

TO

params = @template.request.params.except(:action, :controller).merge('page' => page)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Everyone's favorite Ruby library for pagination of practically anything!

People watching this ticket

Referenced by

Pages