mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 20:18:54 +08:00
BUGFIX: allow top to be the homepage
This commit is contained in:
parent
35634fcbc5
commit
2a79ed97ed
@ -297,5 +297,7 @@ Discourse::Application.routes.draw do
|
|||||||
end
|
end
|
||||||
# special case for categories
|
# special case for categories
|
||||||
root to: "categories#index", constraints: HomePageConstraint.new("categories"), :as => "categories_index"
|
root to: "categories#index", constraints: HomePageConstraint.new("categories"), :as => "categories_index"
|
||||||
|
# special case for top
|
||||||
|
root to: "list#top", constraints: HomePageConstraint.new("top"), :as => "list_top"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user