Fix regression in admin routing in subdirectory. fixes #1606

Because admin routing uses the "hash" strategy, the base path does not
need to be taken into account.
This commit is contained in:
Toby Zerner 2018-10-29 07:25:17 +10:30
parent a1948e7bb8
commit 104d3982fe
2 changed files with 2 additions and 3 deletions

View File

@ -150,13 +150,12 @@ export default class Application {
});
}
mount() {
mount(basePath = '') {
this.modal = m.mount(document.getElementById('modal'), <ModalManager/>);
this.alerts = m.mount(document.getElementById('alerts'), <AlertManager/>);
this.drawer = new Drawer();
const basePath = this.forum.attribute('basePath');
m.route(
document.getElementById('content'),
basePath + '/',

View File

@ -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);