mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Fix local onebox subcategory urls
This commit is contained in:
parent
64331e2ac1
commit
41dadcc349
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue