From 24ca074f3ff09bb1ae77014edaa95b085065548b Mon Sep 17 00:00:00 2001 From: Maja Komel Date: Wed, 8 May 2019 17:07:12 +0200 Subject: [PATCH] FIX: short description title on client side when empty description follow-up 77af097c --- app/assets/javascripts/discourse/routes/application.js.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/routes/application.js.es6 b/app/assets/javascripts/discourse/routes/application.js.es6 index 1bafd2d6e6e..5d458c52803 100644 --- a/app/assets/javascripts/discourse/routes/application.js.es6 +++ b/app/assets/javascripts/discourse/routes/application.js.es6 @@ -42,7 +42,10 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, { _collectTitleTokens(tokens) { tokens.push(this.get("siteTitle")); - if (window.location.pathname === Discourse.getURL("/")) { + if ( + window.location.pathname === Discourse.getURL("/") && + this.get("shortSiteDescription") !== "" + ) { tokens.push(this.get("shortSiteDescription")); } Discourse.set("_docTitle", tokens.join(" - "));