5261: When redirecting during an AJAX request, send the target URI in
[arvados.git] / apps / workbench / app / controllers / search_controller.rb
index 6f209a5a9e0d11fc0a1a0fbaab0b6fe8b47834cc..447f416aa25e438ab8fd5cdba3cf0d7d9827ebb7 100644 (file)
@@ -15,12 +15,13 @@ class SearchController < ApplicationController
     end
     @objects = search_what.contents(limit: @limit,
                                     offset: @offset,
-                                    filters: @filters,
-                                    include_linked: true)
+                                    filters: @filters)
     super
   end
 
   def next_page_href with_params={}
-    super with_params.merge(last_object_class: @objects.last.class.to_s)
+    super with_params.merge(last_object_class: @objects.last.class.to_s,
+                            project_uuid: params[:project_uuid],
+                            filters: @filters.to_json)
   end
 end