mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 18:33:40 +08:00
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:
parent
a1948e7bb8
commit
104d3982fe
|
@ -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 + '/',
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user