3654: redirection to newly created collection is now working.
[arvados.git] / apps / workbench / app / controllers / actions_controller.rb
index fc29ec26594ec7bf440e5f812e7fec54088a88a8..62c0b32e1edab98ec13c52932ae91f6ec0bb1fb2 100644 (file)
@@ -172,13 +172,9 @@ class ActionsController < ApplicationController
 
     action_data = JSON.parse(params['action_data']) if params['action_data']
     if action_data && action_data['selection_param'].eql?('project')
-      respond_to do |format|
-        format.js {render inline: "location.reload();" }
-      end
+      redirect_to :back
     else
-      respond_to do |format|
-        format.js {redirect_to url_for(controller: 'collections', action: :show, id: newc.uuid)}
-      end
+      redirect_to url_for(controller: 'collections', action: :show, id: newc.uuid)
     end
   end