X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/988d7cd90df00a8eabbc3cc40e1f3467a0b2dec0..2c497aee7a45c31ae6d1a448c35ce1b3f0ebb608:/app/controllers/sessions_controller.rb diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 5b46d67d0..9489553a8 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -38,11 +38,7 @@ class SessionsController < ApplicationController referer = safe_referer(params[:referer]) if params[:referer] - if referer - redirect_to referer - else - redirect_to :controller => "site", :action => "index" - end + redirect_to referer || { :controller => "site", :action => "index" } end end