Here is my template code:
<template name="singlePost">
hello
</template>
and the route:
FlowRouter.route('/UserPosts:id', {
name: 'singlePost',
action() {
this.render('singlePost');
}
});
and here is how I am calling it:
<a href="/UserPosts/{{_id}}">test</a>
note that when I use {{_id}}
, I can see the id
shown in the page, and when I press test
, i can see the link changed and shows the id
as well but the template doesn’t load and I see the following errors printed to the console:
Exception from Tracker recompute function:
Error: No such layout template: notFound [404]
at BlazeRenderer.proceed (renderer.js:159)
at BlazeRenderer.startQueue (renderer.js:99)
at BlazeRenderer.render (renderer.js:91)
at Route.action [as _action] (routes.js:69)
at Route.callAction (route.js:311)
at router.js:517
at Object.Tracker.nonreactive (tracker.js:603)
at router.js:502
at Computation._compute (tracker.js:308)
at Computation._recompute (tracker.js:324)
What am I doing wrong here?