mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
Make the back button a functional link
This commit is contained in:
@@ -31,7 +31,10 @@ export default function boot(app) {
|
||||
app.alerts = m.mount(document.getElementById('alerts'), AlertManager.component());
|
||||
app.history = {
|
||||
canGoBack: () => true,
|
||||
back: () => window.location = '/'
|
||||
backUrl: () => app.forum.attribute('baseUrl'),
|
||||
back: function() {
|
||||
window.location = this.backUrl();
|
||||
}
|
||||
};
|
||||
|
||||
m.route.mode = 'hash';
|
||||
|
Reference in New Issue
Block a user