X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/caf2e2a242182f2c0dac78fc3f2f39b3fbbc8299..26698d6d267ab410d082a9b774b3ad5f9dc86b05:/app/controllers/users_controller.rb diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index ec30eb4e7..727d8ee3f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -30,7 +30,7 @@ class UsersController < ApplicationController # Already agreed to terms, so just show settings redirect_to :action => :account, :display_name => current_user.display_name elsif current_user.nil? && session[:new_user].nil? - redirect_to :action => :login, :referer => request.fullpath + redirect_to login_path(:referer => request.fullpath) end end end