Merge pull request #986 from chrishunt/fix-local-onebox

Link to category slug instead of name in onebox
This commit is contained in:
Robin Ward 2013-06-07 14:23:53 -07:00
commit f4d70b922d
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ module Oneboxer
category = topic.category
if category
category = "<a href=\"/category/#{category.name}\" class=\"badge badge-category\" style=\"background-color: ##{category.color}\">#{category.name}</a>"
category = "<a href=\"/category/#{category.slug}\" class=\"badge badge-category\" style=\"background-color: ##{category.color}\">#{category.name}</a>"
end
quote = post.excerpt(SiteSetting.post_onebox_maxlength)