diff --git a/js/src/common/Application.js b/js/src/common/Application.js index 3b36cb43a..9950c7dd0 100644 --- a/js/src/common/Application.js +++ b/js/src/common/Application.js @@ -150,13 +150,12 @@ export default class Application { }); } - mount() { + mount(basePath = '') { this.modal = m.mount(document.getElementById('modal'), ); this.alerts = m.mount(document.getElementById('alerts'), ); this.drawer = new Drawer(); - const basePath = this.forum.attribute('basePath'); m.route( document.getElementById('content'), basePath + '/', diff --git a/js/src/forum/ForumApplication.js b/js/src/forum/ForumApplication.js index 4a1439ead..eed6ae574 100644 --- a/js/src/forum/ForumApplication.js +++ b/js/src/forum/ForumApplication.js @@ -96,7 +96,7 @@ export default class ForumApplication extends Application { this.composer = m.mount(document.getElementById('composer'), Composer.component()); m.route.mode = 'pathname'; - super.mount(); + super.mount(this.forum.attribute('basePath')); alertEmailConfirmation(this);