Commit a7071ded authored by Martin Wortschack's avatar Martin Wortschack

Parse request.referer properly

parent 68ac430a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment