diff --git a/app/views/shared/_pagination.html.erb b/app/views/shared/_pagination.html.erb index a0dfdcfa..25fd7b3e 100644 --- a/app/views/shared/_pagination.html.erb +++ b/app/views/shared/_pagination.html.erb @@ -12,7 +12,7 @@ <%= local_assigns[:right_additional_html] %>
<% if pagy.previous %> - <%= link_to '«', url_for(page: pagy.previous), class: 'join-item btn min-h-full h-10' %> + <%= link_to '«', url_for(params: request.query_parameters.merge('page' => pagy.previous)), class: 'join-item btn min-h-full h-10' %> <% else %> « <% end %> @@ -22,7 +22,7 @@ <% if local_assigns[:next_page_path].present? %> <%= link_to '»', local_assigns[:next_page_path], class: 'join-item btn min-h-full h-10' %> <% elsif pagy.next %> - <%= link_to '»', url_for(page: pagy.next), class: 'join-item btn min-h-full h-10' %> + <%= link_to '»', url_for(params: request.query_parameters.merge('page' => pagy.next)), class: 'join-item btn min-h-full h-10' %> <% else %> » <% end %> diff --git a/app/views/shared/_search_input.html.erb b/app/views/shared/_search_input.html.erb index f9c935f8..78f8208d 100644 --- a/app/views/shared/_search_input.html.erb +++ b/app/views/shared/_search_input.html.erb @@ -1,7 +1,4 @@
- <% if params[:status].present? %> - - <% end %> <% Submissions::Filter::ALLOWED_PARAMS.each do |key| %> <% if params[key].present? %> diff --git a/app/views/webhook_settings/show.html.erb b/app/views/webhook_settings/show.html.erb index 0c3e9df0..37a15640 100644 --- a/app/views/webhook_settings/show.html.erb +++ b/app/views/webhook_settings/show.html.erb @@ -106,7 +106,7 @@
<% if @pagy.previous %> - <%= link_to '«', url_for(page: @pagy.previous, anchor: 'log'), class: 'join-item btn min-h-full h-10' %> + <%= link_to '«', url_for(params: request.query_parameters.merge('page' => @pagy.previous), anchor: 'log'), class: 'join-item btn min-h-full h-10' %> <% else %> « <% end %> @@ -114,7 +114,7 @@ <%= "Page #{@pagy.page}" %> <% if @pagy.next %> - <%= link_to '»', url_for(page: @pagy.next, anchor: 'log'), class: 'join-item btn min-h-full h-10' %> + <%= link_to '»', url_for(params: request.query_parameters.merge('page' => @pagy.next), anchor: 'log'), class: 'join-item btn min-h-full h-10' %> <% else %> » <% end %>