]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/users_controller.rb
Use correct link for users with no location
[rails.git] / app / controllers / users_controller.rb
index ec30eb4e7b14a3267b44dfcbd0386939c83009f9..727d8ee3faed139adce3edc3b0922bb81b94be0e 100644 (file)
@@ -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