diff --git a/js/src/forum/components/DiscussionPage.js b/js/src/forum/components/DiscussionPage.js index 2817172fa..dbef757cd 100644 --- a/js/src/forum/components/DiscussionPage.js +++ b/js/src/forum/components/DiscussionPage.js @@ -49,7 +49,7 @@ export default class DiscussionPage extends Page { this.bodyClass = 'App--discussion'; } - onunload(e) { + onremove(vnode) { // If we have routed to the same discussion as we were viewing previously, // cancel the unloading of this controller and instead prompt the post // stream to jump to the new 'near' param. @@ -57,7 +57,7 @@ export default class DiscussionPage extends Page { const idParam = m.route.param('id'); if (idParam && idParam.split('-')[0] === this.discussion.id()) { - e.preventDefault(); + //e.preventDefault(); const near = m.route.param('near') || '1';