mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08: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
|
category = topic.category
|
||||||
if 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
|
end
|
||||||
|
|
||||||
quote = post.excerpt(SiteSetting.post_onebox_maxlength)
|
quote = post.excerpt(SiteSetting.post_onebox_maxlength)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue