X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/74cc88fce4982777d5f78e016940159de655c817..606b5c1b6a3b9314f6abd004e8bd9ed3b4352da5:/app/controllers/concerns/session_methods.rb diff --git a/app/controllers/concerns/session_methods.rb b/app/controllers/concerns/session_methods.rb index 45cf0d943..2cfc4e823 100644 --- a/app/controllers/concerns/session_methods.rb +++ b/app/controllers/concerns/session_methods.rb @@ -48,7 +48,7 @@ module SessionMethods # - If they were referred to the login, send them back there. # - Otherwise, send them to the home page. if !user.terms_seen - redirect_to :controller => :users, :action => :terms, :referer => target + redirect_to account_terms_path(:referer => target) elsif user.blocked_on_view redirect_to user.blocked_on_view, :referer => target else