hi guys , i am trying to render a route by passing the current document _id as params to kadira flow router.
This is how i am parsing the id to the route
{{#EasySearch.Each index=listingIndex }}
<div class="extra content">
<div class="ui two buttons">
<a class="ui basic green button " href="/requestShippment/{{_id}}">contact</a>
</div>
</div>
{{/EasySearch.Each}}
This is the route
FlowRouter.route('/requestShippment/:_id', {
name: 'App.requestShippment',
action(params) {
BlazeLayout.render('App_body', { main: 'requestShippment' });
console.log(params._id);
},
});
Result
http://localhost:3000/requestShippment/eWqWcTYYumgfbnuBv%22%22%7B%7D
i want only this:
http://localhost:3000/requestShippment/eWqWcTYYumgfbnuBv
so i can easy use the id.
how do i parse it correctly without the {{}} interpretation.
Please help.
Thank you so much.
Love.