FIX: short description title on client side when empty description
follow-up 77af097c
This commit is contained in:
parent
e84531a6a6
commit
24ca074f3f
|
@ -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(" - "));
|
||||
|
|
Loading…
Reference in New Issue