Skip to content

Commit

Permalink
Revert back button behaviour
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tobyzerner committed Nov 5, 2015
1 parent 351d2d1 commit 783a146
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/forum/src/initializers/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -31,6 +31,7 @@ export default function boot(app) {
}

app.routes[defaultAction].path = '/';
app.history.push(defaultAction, icon('bars'), '/');

m.startComputation();

Expand Down

0 comments on commit 783a146

Please sign in to comment.