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:
Toby Zerner 2015-11-05 16:24:04 +10:30
parent 351d2d1366
commit 783a14610a

View File

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