Fix local onebox subcategory urls

This commit is contained in:
riking 2014-08-25 16:47:54 -07:00
parent 64331e2ac1
commit 41dadcc349

View file

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