From 5115b6fb09ee2ca6a9722188bcfc34556f3aa726 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 14 May 2015 22:14:38 +0930 Subject: [PATCH] Prevent JS error for now --- .../js/forum/src/components/discussion-page.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/framework/core/js/forum/src/components/discussion-page.js b/framework/core/js/forum/src/components/discussion-page.js index f363c0276..da9643108 100644 --- a/framework/core/js/forum/src/components/discussion-page.js +++ b/framework/core/js/forum/src/components/discussion-page.js @@ -82,13 +82,14 @@ export default class DiscussionPage extends Component { // Hold up there skippy! If the slug in the URL doesn't match up, we'll // redirect so we have the correct one. - if (m.route.param('id') === discussion.id() && m.route.param('slug') !== discussion.slug()) { - var params = m.route.param(); - params.slug = discussion.slug(); - params.near = params.near || ''; - m.route(app.route('discussion.near', params), null, true); - return; - } + // Waiting on https://github.com/lhorie/mithril.js/issues/539 + // if (m.route.param('id') === discussion.id() && m.route.param('slug') !== discussion.slug()) { + // var params = m.route.param(); + // params.slug = discussion.slug(); + // params.near = params.near || ''; + // m.route(app.route('discussion.near', params), null, true); + // return; + // } this.streamContent.goToNumber(this.currentNear, true); }