We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b9264d commit 04bfa8eCopy full SHA for 04bfa8e
client/templates/application/not_found.html
@@ -0,0 +1,6 @@
1
+<template name="notFound">
2
+ <div class="not-found page jumbotron">
3
+ <h2>404</h2>
4
+ <p>Sorry, we couldn't find a page at this address.</p>
5
+ </div>
6
+</template>
lib/router.js
@@ -1,6 +1,7 @@
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
+ notFoundTemplate: 'notFound',
waitOn: function() { return Meteor.subscribe('posts'); }
});
7
@@ -10,3 +11,5 @@ Router.route('/posts/:_id', {
10
11
name: 'postPage',
12
data: function() { return Posts.findOne(this.params._id); }
13
14
+
15
+Router.onBeforeAction('dataNotFound', {only: 'postPage'});
0 commit comments