I just made the change to Flow Router and trying to understand it. I'm creating a portfolio. I have a list of portfolio items. You can click a single item and it will take you to the specific page. I have the path helper set up, but the client side publishing seems to be the issue.
This is the helper I have:
Template.Single.helpers({
portfolio: () => {
var itemId = FlowRouter.getParam('id');
return Portfolio.findOne({_id: id});
}
});
and the route:
FlowRouter.route('/portfolio/:_id', {
action() {
BlazeLayout.render('MasterLayout', {content: 'Single'});
}
});