mirror of
https://github.com/flarum/core.git
synced 2025-07-13 12:56:26 +02: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:
@ -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 + '/',
|
||||
|
Reference in New Issue
Block a user