From 692bb47fcff3836ff1404ae19417f6938cdc6d74 Mon Sep 17 00:00:00 2001 From: Prakharsvnit Date: Thu, 13 Apr 2017 01:41:30 +0530 Subject: [PATCH 1/9] added error page --- client/routes/pageNotFound.html | 6 ++++++ client/routes/router.js | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 client/routes/pageNotFound.html diff --git a/client/routes/pageNotFound.html b/client/routes/pageNotFound.html new file mode 100644 index 000000000000..264a35332de7 --- /dev/null +++ b/client/routes/pageNotFound.html @@ -0,0 +1,6 @@ + + diff --git a/client/routes/router.js b/client/routes/router.js index 9d5c7e6eb9d1..d462eebbe793 100644 --- a/client/routes/router.js +++ b/client/routes/router.js @@ -154,3 +154,10 @@ FlowRouter.route('/register/:hash', { // BlazeLayout.render 'logoLayout', { render: 'invalidSecretURL' } } }); + +FlowRouter.notFound = { + action() { + BlazeLayout.render('_404'); + } +}; + From 9636612ff56caf584b5cb38b245ed6821345ec67 Mon Sep 17 00:00:00 2001 From: Prakhar tripathi Date: Thu, 13 Apr 2017 02:00:41 +0530 Subject: [PATCH 2/9] edited tabspaces --- client/routes/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/routes/router.js b/client/routes/router.js index d462eebbe793..6e562cbd0437 100644 --- a/client/routes/router.js +++ b/client/routes/router.js @@ -156,8 +156,8 @@ FlowRouter.route('/register/:hash', { }); FlowRouter.notFound = { - action() { - BlazeLayout.render('_404'); + action() { + BlazeLayout.render('_404'); } }; From 2fb397a00ac430a53e4a9bbd64bf4806b9f44bd9 Mon Sep 17 00:00:00 2001 From: Prakhar tripathi Date: Thu, 13 Apr 2017 02:02:55 +0530 Subject: [PATCH 3/9] Update router.js --- client/routes/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/routes/router.js b/client/routes/router.js index 6e562cbd0437..4a6d9baa6c4f 100644 --- a/client/routes/router.js +++ b/client/routes/router.js @@ -158,6 +158,6 @@ FlowRouter.route('/register/:hash', { FlowRouter.notFound = { action() { BlazeLayout.render('_404'); - } +} }; From 98c09283df3776fbe5455992ad79ec62a9b68ff8 Mon Sep 17 00:00:00 2001 From: Prakharsvnit Date: Fri, 14 Apr 2017 04:07:38 +0530 Subject: [PATCH 4/9] changed template's name to pageNotFound --- client/routes/pageNotFound.html | 2 +- client/routes/router.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/routes/pageNotFound.html b/client/routes/pageNotFound.html index 264a35332de7..1f3f239c3e16 100644 --- a/client/routes/pageNotFound.html +++ b/client/routes/pageNotFound.html @@ -1,4 +1,4 @@ -