projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
3453: Add ensure_unique_name=True to collection create.
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
users_controller.rb
diff --git
a/apps/workbench/app/controllers/users_controller.rb
b/apps/workbench/app/controllers/users_controller.rb
index 189f295f8fe097c2a2a17e8a5f41342ed254eef0..27f13b7205b4d633c004f483d7ca3da659ebd53f 100644
(file)
--- a/
apps/workbench/app/controllers/users_controller.rb
+++ b/
apps/workbench/app/controllers/users_controller.rb
@@
-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