# Odd {{link-to}} behaviour - not using the object's id property by default

**URL:** <https://discuss.emberjs.com/t/odd-link-to-behaviour-not-using-the-objects-id-property-by-default/13705>\
**Category:** Learning Team\
**Created:** [October 7, 2017, 6:30am UTC](https://discuss.emberjs.com/t/odd-link-to-behaviour-not-using-the-objects-id-property-by-default/13705 "2017-10-07T06:30:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyicon](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/johnnyicon/32/13390_2.png) [@johnnyicon](https://discuss.emberjs.com/u/johnnyicon)\
**Post date:** [October 7, 2017, 6:30am UTC](https://discuss.emberjs.com/t/odd-link-to-behaviour-not-using-the-objects-id-property-by-default/13705/1 "2017-10-07T06:30:27Z")

</div>

This is strange behaviour and I wanted to see if this is right. When a pass a `model` (and just the `model`) to a the `{{#link-to}}` helper, I get the following error: `Assertion Failed: You cannot pass 'undefined' as id to the store's find method`

However, when I use `model.id`, the error doesn’t occur. Based on the [documentation](https://guides.emberjs.com/v2.15.0/templates/links/), I thought the `{{#link-to}}` helper was meant to use the `id` property by default?

---

<div class="post-metadata">

**Author:** ![Chris\_Lincoln](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Chris\_Lincoln](https://discuss.emberjs.com/u/Chris_Lincoln)\
**Post date:** [October 7, 2017, 12:38pm UTC](https://discuss.emberjs.com/t/odd-link-to-behaviour-not-using-the-objects-id-property-by-default/13705/2 "2017-10-07T12:38:05Z")

</div>

That is how I understand it. I presume the find() call is in a model hook? It won’t even fire the model hook if you pass an object. What does your router look like? And I’d also suggest triple-checking the spelling of the object variable name you are passing in the link-to.
