From c90609fae7297e489a673ee5d50982402dd23771 Mon Sep 17 00:00:00 2001 From: ksjdragon Date: Mon, 9 Feb 2015 20:23:39 -0500 Subject: [PATCH] 404 page 'added', actually just renders initial template --- chromebook-checkout-meteor/client/router.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chromebook-checkout-meteor/client/router.js b/chromebook-checkout-meteor/client/router.js index be0c681..760579c 100644 --- a/chromebook-checkout-meteor/client/router.js +++ b/chromebook-checkout-meteor/client/router.js @@ -22,7 +22,7 @@ Router.route('/login', function() { } else { this.redirect('') } -}); +}); Router.route('/admin', function() { if (Roles.userIsInRole(Meteor.user()._id, ['admin'])) { @@ -39,6 +39,6 @@ Router.route('/teacher', function() { this.redirect('/login'); } }); -Router.plugin('dataNotFound', function() { - this.redirect('/') +Router.configure({ + notFoundTemplate: "initial" }); \ No newline at end of file