matteodem / meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
MIT License
435 stars 68 forks source link

Questions on originalId and routing #488

Closed mervynteo closed 8 years ago

mervynteo commented 8 years ago

I understand search results uses a different Id. From the docs it says to use _originalId. Whats the best way of implementing a click on search result, then route to page with the originalId? Do i need additional helpers or adjustments to the index for the routed page?

Say if its a pathing issue with link as {{ pathFor "pathName" }}

mervynteo commented 8 years ago

So that others can know, I solved it with the below: <a href="{{pathFor 'pathName' _id=__originalId}}">

That will route it without a need for js helpers.