mirror of
https://github.com/flarum/core.git
synced 2025-07-14 13:26:23 +02:00
Revert back button behaviour
As of 25932cf
, the back button was no longer shown if the user came in directly to a discussion. This caused problems on mobile where it was kind of hard to get back home without the button.
This commit is contained in:
@ -4,7 +4,7 @@ import ScrollListener from 'flarum/utils/ScrollListener';
|
|||||||
import Pane from 'flarum/utils/Pane';
|
import Pane from 'flarum/utils/Pane';
|
||||||
import Drawer from 'flarum/utils/Drawer';
|
import Drawer from 'flarum/utils/Drawer';
|
||||||
import mapRoutes from 'flarum/utils/mapRoutes';
|
import mapRoutes from 'flarum/utils/mapRoutes';
|
||||||
|
import icon from 'flarum/helpers/icon';
|
||||||
import Navigation from 'flarum/components/Navigation';
|
import Navigation from 'flarum/components/Navigation';
|
||||||
import HeaderPrimary from 'flarum/components/HeaderPrimary';
|
import HeaderPrimary from 'flarum/components/HeaderPrimary';
|
||||||
import HeaderSecondary from 'flarum/components/HeaderSecondary';
|
import HeaderSecondary from 'flarum/components/HeaderSecondary';
|
||||||
@ -31,6 +31,7 @@ export default function boot(app) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.routes[defaultAction].path = '/';
|
app.routes[defaultAction].path = '/';
|
||||||
|
app.history.push(defaultAction, icon('bars'), '/');
|
||||||
|
|
||||||
m.startComputation();
|
m.startComputation();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user