From 01d2685c608f389df7074e694858d49f20b50e5b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 11 May 2017 11:18:06 -0400 Subject: [PATCH] FIX: `users_account_created_path` should point to `/u/` --- config/routes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 718d8ab2550..be1271177ea 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -324,7 +324,9 @@ Discourse::Application.routes.draw do post "#{root_path}/toggle-anon" => "users#toggle_anon" post "#{root_path}/read-faq" => "users#read_faq" get "#{root_path}/search/users" => "users#search_users" - get "#{root_path}/account-created/" => "users#account_created" + + get({ "#{root_path}/account-created/" => "users#account_created" }.merge(index == 1 ? { as: :users_account_created } : {as: :old_account_created})) + get "#{root_path}/account-created/resent" => "users#account_created" get "#{root_path}/account-created/edit-email" => "users#account_created" get({ "#{root_path}/password-reset/:token" => "users#password_reset" }.merge(index == 1 ? { as: :password_reset_token } : {}))