X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f1935b1c5786de8f27bee9b6b2da2f28f650468f..62ecf15975f4285ce7b68383860168b221cb594f:/app/controllers/confirmations_controller.rb diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index 7b1c52ca6..2a00a49b0 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -93,10 +93,10 @@ class ConfirmationsController < ApplicationController current_user.tokens.delete_all session[:user] = current_user.id session[:fingerprint] = current_user.fingerprint - redirect_to :controller => :users, :action => :account, :display_name => current_user.display_name + redirect_to user_account_path(current_user) elsif token flash[:error] = t "confirmations.confirm_email.failure" - redirect_to :controller => :users, :action => :account, :display_name => token.user.display_name + redirect_to user_account_path(token.user) else flash[:error] = t "confirmations.confirm_email.unknown_token" end