X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d81ea65da05119d5c6480d373b5d42bbee8ae1ad..5af4f00db1cbac83f52bf02b424968fd0ef387b1:/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 189f295f8f..27f13b7205 100644 --- 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