From d71c76b94dd5e293d79e0ccda4101fe229e71fa6 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Mon, 24 Aug 2015 15:52:28 -0300 Subject: [PATCH] Keep user in the same URL when room was not found --- client/routes/roomRoute.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/routes/roomRoute.coffee b/client/routes/roomRoute.coffee index 250ad1fd5dc..20c3f9e435f 100644 --- a/client/routes/roomRoute.coffee +++ b/client/routes/roomRoute.coffee @@ -21,7 +21,8 @@ openRoom = (type, name) -> room = ChatRoom.findOne(query) if not room? - FlowRouter.go 'room-not-found', {type: type, name: name} + Session.set 'roomNotFound', {type: type, name: name} + BlazeLayout.render 'main', {center: 'roomNotFound'} return mainNode = document.querySelector('.main-content')