mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
Fix subcategories links from search
This commit is contained in:
@ -24,7 +24,7 @@ class Search
|
||||
end
|
||||
|
||||
def self.from_category(c)
|
||||
SearchResult.new(type: :category, id: c.id, title: c.name, url: "/category/#{c.slug}").tap do |r|
|
||||
SearchResult.new(type: :category, id: c.id, title: c.name, url: c.url).tap do |r|
|
||||
r.color = c.color
|
||||
r.text_color = c.text_color
|
||||
end
|
||||
|
Reference in New Issue
Block a user