mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
FIX: respect 'topic page title includes category' client side
This commit is contained in:
parent
3cba858930
commit
6ce422feab
|
@ -24,7 +24,7 @@ const TopicRoute = Discourse.Route.extend({
|
|||
cat = model.get('category');
|
||||
|
||||
// Only display uncategorized in the title tag if it was renamed
|
||||
if (cat && !(cat.get('isUncategorizedCategory') && cat.get('name').toLowerCase() === "uncategorized")) {
|
||||
if (this.siteSettings.topic_page_title_includes_category && cat && !(cat.get('isUncategorizedCategory') && cat.get('name').toLowerCase() === "uncategorized")) {
|
||||
let catName = cat.get('name');
|
||||
|
||||
const parentCategory = cat.get('parentCategory');
|
||||
|
|
|
@ -1384,7 +1384,9 @@ uncategorized:
|
|||
zh_CN: 350
|
||||
zh_TW: 350
|
||||
|
||||
topic_page_title_includes_category: true
|
||||
topic_page_title_includes_category:
|
||||
default: true
|
||||
client: true
|
||||
|
||||
native_app_install_banner: false
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user