4091: retain filters in project contents collections and similar tabs.
[arvados.git] / apps / workbench / app / controllers / projects_controller.rb
index 56bcd0a8f183141a59e767d5c5ec430716ad5b11..31223168019db289e273583aac324ef361983b9b 100644 (file)
@@ -232,6 +232,7 @@ class ProjectsController < ApplicationController
                                 last_created_at]]
         @next_page_href = url_for(partial: :contents_rows,
                                   last_uuid: @objects.last.uuid,
+                                  limit: @limit,
                                   filters: @next_page_filters.to_json)
       else
         @next_page_href = nil
@@ -242,7 +243,7 @@ class ProjectsController < ApplicationController
                                   include_linked: true,
                                   filters: @filters,
                                   offset: @offset)
-      @next_page_href = next_page_href(partial: :contents_rows)
+      @next_page_href = next_page_href(partial: :contents_rows, filters: @filters.to_json)
     end
 
     preload_links_for_objects(@objects.to_a)