mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 18:25:41 +08:00
Fix local onebox subcategory urls
This commit is contained in:
parent
64331e2ac1
commit
41dadcc349
@ -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…
x
Reference in New Issue
Block a user