FIX: Foward requests to /u/new to our Ember router.

This commit is contained in:
Guo Xiang Tan 2017-06-21 13:02:22 +09:00
parent 0dd1d736c8
commit 47ca0f7f09

View File

@ -309,7 +309,7 @@ Discourse::Application.routes.draw do
get "user_preferences" => "users#user_preferences_redirect"
%w{users u}.each_with_index do |root_path, index|
resources :users, except: [:show, :update, :destroy], path: root_path do
resources :users, except: [:new, :show, :update, :destroy], path: root_path do
collection do
get "check_username"
get "is_local_username"