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
-
Mislav December 21st, 2008 @ 08:06 PM
- State changed from new to resolved
(from [f2031833b42eaaa10a92b551846e3d4e94fb486a]) use string key for 'page' parameter when constructing URLs in Merb [phatmann] [#256 state:resolved] http://github.com/mislav/will_pa...
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.
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!
Referenced by
- 256 Double page params when using merb 1.0.6.1 (from [f2031833b42eaaa10a92b551846e3d4e94fb486a]) use str...
- 259 Ignores page :params in merb Thanks for reviewing. I think we have to use string key "...