diff --git a/framework/core/js/forum/src/components/DiscussionPage.js b/framework/core/js/forum/src/components/DiscussionPage.js index 2f4d903e5..79d3169e9 100644 --- a/framework/core/js/forum/src/components/DiscussionPage.js +++ b/framework/core/js/forum/src/components/DiscussionPage.js @@ -184,6 +184,7 @@ export default class DiscussionPage extends mixin(Component, evented) { this.discussion = discussion; app.setTitle(discussion.title()); + app.setTitleCount(0); // When the API responds with a discussion, it will also include a number of // posts. Some of these posts are included because they are on the first diff --git a/framework/core/js/forum/src/components/IndexPage.js b/framework/core/js/forum/src/components/IndexPage.js index baddf654d..677c3f494 100644 --- a/framework/core/js/forum/src/components/IndexPage.js +++ b/framework/core/js/forum/src/components/IndexPage.js @@ -96,6 +96,7 @@ export default class IndexPage extends Component { }; app.setTitle(''); + app.setTitleCount(0); // Work out the difference between the height of this hero and that of the // previous hero. Maintain the same scroll position relative to the bottom diff --git a/framework/core/js/lib/App.js b/framework/core/js/lib/App.js index 0ae388437..c8327efdd 100644 --- a/framework/core/js/lib/App.js +++ b/framework/core/js/lib/App.js @@ -107,6 +107,9 @@ export default class App { * @private */ this.requestError = null; + + this.title = ''; + this.titleCount = 0; } /** @@ -139,10 +142,29 @@ export default class App { * Set the