diff --git a/framework/core/js/forum/src/initializers/boot.js b/framework/core/js/forum/src/initializers/boot.js index 6ac66658b..cbfed3123 100644 --- a/framework/core/js/forum/src/initializers/boot.js +++ b/framework/core/js/forum/src/initializers/boot.js @@ -35,6 +35,12 @@ export default function(app) { } }); + $('#home-link').click(e => { + if (e.ctrlKey || e.metaKey || e.which === 2) return; + e.preventDefault(); + app.history.home(); + }); + m.mount(id('header-primary'), HeaderPrimary.component()); m.mount(id('header-secondary'), HeaderSecondary.component()); m.mount(id('footer-primary'), FooterPrimary.component()); diff --git a/framework/core/js/forum/src/utils/history.js b/framework/core/js/forum/src/utils/history.js index d51e5e948..cac63144d 100644 --- a/framework/core/js/forum/src/utils/history.js +++ b/framework/core/js/forum/src/utils/history.js @@ -37,7 +37,6 @@ export default class History { home() { this.stack.splice(1); - var top = this.top(); - m.route(top.url); + m.route('/'); } } diff --git a/framework/core/views/forum.blade.php b/framework/core/views/forum.blade.php index 197acffc1..7a7dae34e 100644 --- a/framework/core/views/forum.blade.php +++ b/framework/core/views/forum.blade.php @@ -4,7 +4,7 @@