mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: missing category from title in non-js view
This commit is contained in:
@@ -131,6 +131,14 @@ class TopicView
|
||||
@topic.relative_url
|
||||
end
|
||||
|
||||
def page_title
|
||||
title = @topic.title
|
||||
unless @topic.category_id == SiteSetting.uncategorized_category_id
|
||||
title += " - #{topic.category.name}"
|
||||
end
|
||||
title
|
||||
end
|
||||
|
||||
def title
|
||||
@topic.title
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user