FIX: respect 'topic page title includes category' client side

This commit is contained in:
Arpit Jalan 2017-12-30 09:06:02 +05:30
parent 3cba858930
commit 6ce422feab
2 changed files with 4 additions and 2 deletions

View File

@ -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');

View File

@ -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