Router dynamique problem

Hi community,

I would like creat router for access on blog post, with this :

Router.route('/blog/:_id', { name: 'blogPost', data: function() { return Posts.findOne(this.params._id); } })

But, if i go on /blog/c8JkgageB4kCFE6H4 (id is enable on mongo), i’ve 404 page :

Router.onBeforeAction('dataNotFound', { only: 'blogPost' });

I don’t understand why, my template is creat with this :

<template name="blogPost"> <h2>{{ title }}</h2> </template>

Do you have any idea where I make a error ?

Thank you ! :slight_smile: