diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2018-09-18 10:47:05 +0200 |
---|---|---|
committer | Martin Wortschack <mwortschack@gitlab.com> | 2018-09-18 10:47:05 +0200 |
commit | a7071deddcdfc01c6a9ade261569569882cdb955 (patch) | |
tree | 3881471b179b026f96ee0e888cd0d6a15d138e00 | |
parent | 68ac430af9989fe4f93075e5bc426f8e2c55cf3d (diff) | |
download | gitlab-ce-a7071deddcdfc01c6a9ade261569569882cdb955.tar.gz |
Parse request.referer properly
-rw-r--r-- | app/controllers/admin/application_settings_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/application_settings_controller.rb b/app/controllers/admin/application_settings_controller.rb index c7692161e93..6beed4b7dd2 100644 --- a/app/controllers/admin/application_settings_controller.rb +++ b/app/controllers/admin/application_settings_controller.rb @@ -19,7 +19,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController session[:ask_for_usage_stats_consent] = current_user.requires_usage_stats_consent? end - redirect_path = request.referer.presence ? request.referer : admin_application_settings_path + redirect_path = request.referer.presence ? URI(request.referer).path : admin_application_settings_path respond_to do |format| if successful |