Merge pull request #1960 from verg/subcategory-search-links

Fix subcategories links from search
This commit is contained in:
Sam
2014-02-17 10:33:35 +11:00
3 changed files with 22 additions and 1 deletions

View File

@ -357,6 +357,12 @@ SQL
def uncategorized?
id == SiteSetting.uncategorized_category_id
end
def url
url = "/category"
url << "/#{parent_category.slug}" if parent_category_id
url << "/#{slug}"
end
end
# == Schema Information