mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:12:46 +08:00
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) {
|
_collectTitleTokens(tokens) {
|
||||||
tokens.push(this.get("siteTitle"));
|
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"));
|
tokens.push(this.get("shortSiteDescription"));
|
||||||
}
|
}
|
||||||
Discourse.set("_docTitle", tokens.join(" - "));
|
Discourse.set("_docTitle", tokens.join(" - "));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user