FIX: short description title on client side when empty description

follow-up 77af097c
This commit is contained in:
Maja Komel 2019-05-08 17:07:12 +02:00
parent e84531a6a6
commit 24ca074f3f
1 changed files with 4 additions and 1 deletions

View File

@ -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(" - "));