aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb b/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb
index a1ce1c453..b3702fc09 100644
--- a/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb
+++ b/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb
@@ -115,12 +115,7 @@ module WillPaginate
@template.content_tag :span, text, :class => span_class
else
# page links should preserve GET/POST parameters
- if @template.params[:controller].match(/^admin_/)
- # XXX hack for admin pages, for mySociety HTTP proxy, use relative URL
- @template.link_to text, "?page=" + page.to_s
- else
- @template.link_to text, @template.params.merge(param => page != 1 ? page : nil)
- end
+ @template.link_to text, @template.params.merge(param => page != 1 ? page : nil)
end
end