Merge branch 'master' into 3112-report-bug
[arvados.git] / apps / workbench / app / controllers / users_controller.rb
index 189f295f8fe097c2a2a17e8a5f41342ed254eef0..27f13b7205b4d633c004f483d7ca3da659ebd53f 100644 (file)
@@ -7,7 +7,11 @@ class UsersController < ApplicationController
 
   def show
     if params[:uuid] == current_user.uuid
-      redirect_to project_path(params[:uuid])
+      respond_to do |f|
+        f.html do
+          redirect_to(params[:return_to] || project_path(params[:uuid]))
+        end
+      end
     else
       super
     end