mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 05:29:17 -06:00
Merge pull request #2695 from riking/local-onebox-category
Fix local onebox subcategory urls
This commit is contained in:
commit
f441e4ec03
@ -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 New Issue
Block a user