diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-10-05 15:29:22 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-10-05 15:29:22 +0300 |
commit | fe135fac68fab5e2a15e7aaa250ae91cd7fa4851 (patch) | |
tree | 576f7033950cb887b5c9013854a862bb12ae7485 /app/controllers/google_api | |
parent | b229637b0837065a9993d06573b41218ab7e9dfb (diff) |
authorizations_controller_spec. cluster_policy_spec.
Diffstat (limited to 'app/controllers/google_api')
-rw-r--r-- | app/controllers/google_api/authorizations_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/google_api/authorizations_controller.rb b/app/controllers/google_api/authorizations_controller.rb index 890b4ce60c8..79f49d598af 100644 --- a/app/controllers/google_api/authorizations_controller.rb +++ b/app/controllers/google_api/authorizations_controller.rb @@ -9,10 +9,10 @@ module GoogleApi session[GoogleApi::CloudPlatform::Client.session_key_for_expires_at] = expires_at.to_s - if params[:state] + if params[:state].present? redirect_to params[:state] else - redirect_to root_url + redirect_to root_path end end end |