mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
BUGFIX: allow top to be the homepage
This commit is contained in:
parent
35634fcbc5
commit
2a79ed97ed
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue