From bea0f3c05b684480f343ade43d396981ccc7f35d Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Fri, 30 Oct 2020 14:18:09 -0400 Subject: [PATCH] Fix broken page title logic on subpath installs The base path needs to be accounted for when calculating whether we're on the default route. --- framework/core/js/src/common/Application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/src/common/Application.js b/framework/core/js/src/common/Application.js index 1fb2017f2..cfaac22aa 100644 --- a/framework/core/js/src/common/Application.js +++ b/framework/core/js/src/common/Application.js @@ -270,7 +270,7 @@ export default class Application { updateTitle() { const count = this.titleCount ? `(${this.titleCount}) ` : ''; - const pageTitleWithSeparator = this.title && m.route.get() !== '/' ? this.title + ' - ' : ''; + const pageTitleWithSeparator = this.title && m.route.get() !== this.forum.attribute('basePath') + '/' ? this.title + ' - ' : ''; const title = this.forum.attribute('title'); document.title = count + pageTitleWithSeparator + title; }