mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 19:34:46 +08: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:
parent
351d2d1366
commit
783a14610a
|
@ -4,7 +4,7 @@ import ScrollListener from 'flarum/utils/ScrollListener';
|
|||
import Pane from 'flarum/utils/Pane';
|
||||
import Drawer from 'flarum/utils/Drawer';
|
||||
import mapRoutes from 'flarum/utils/mapRoutes';
|
||||
|
||||
import icon from 'flarum/helpers/icon';
|
||||
import Navigation from 'flarum/components/Navigation';
|
||||
import HeaderPrimary from 'flarum/components/HeaderPrimary';
|
||||
import HeaderSecondary from 'flarum/components/HeaderSecondary';
|
||||
|
@ -31,6 +31,7 @@ export default function boot(app) {
|
|||
}
|
||||
|
||||
app.routes[defaultAction].path = '/';
|
||||
app.history.push(defaultAction, icon('bars'), '/');
|
||||
|
||||
m.startComputation();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user