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');
|
cat = model.get('category');
|
||||||
|
|
||||||
// Only display uncategorized in the title tag if it was renamed
|
// 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');
|
let catName = cat.get('name');
|
||||||
|
|
||||||
const parentCategory = cat.get('parentCategory');
|
const parentCategory = cat.get('parentCategory');
|
||||||
|
|
|
@ -1384,7 +1384,9 @@ uncategorized:
|
||||||
zh_CN: 350
|
zh_CN: 350
|
||||||
zh_TW: 350
|
zh_TW: 350
|
||||||
|
|
||||||
topic_page_title_includes_category: true
|
topic_page_title_includes_category:
|
||||||
|
default: true
|
||||||
|
client: true
|
||||||
|
|
||||||
native_app_install_banner: false
|
native_app_install_banner: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue