Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Double page params when using merb 1.0.6.1

#256

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)

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

State: resolved
Milestone: none
Assigned to: Mislav Mislav

Activity

  1. phatmann
    phatmann

    This is for the latest version of the agnostic branch.

    December 21st, 2008 @ 07:30 PM

  2. Mislav
    Mislav
    • State changed from new to resolved

    (from [f2031833b42eaaa10a92b551846e3d4e94fb486a]) use string key for 'page' parameter when constructing URLs in Merb [phatmann] [#256 Double page params when using merb 1.0.6.1 state:resolved] http://github.com/mislav/will_pa...

    December 21st, 2008 @ 08:06 PM

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.