# {{#linkTo}} and nested routes confusion

**URL:** <https://discuss.emberjs.com/t/linkto-and-nested-routes-confusion/1309>\
**Category:** Uncategorized\
**Created:** [May 23, 2013, 3:04am UTC](https://discuss.emberjs.com/t/linkto-and-nested-routes-confusion/1309 "2013-05-23T03:04:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emerson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/emerson/32/14405_2.png) [@Emerson](https://discuss.emberjs.com/u/Emerson)\
**Post date:** [May 23, 2013, 3:04am UTC](https://discuss.emberjs.com/t/linkto-and-nested-routes-confusion/1309/1 "2013-05-23T03:04:51Z")

</div>

Hello friends,

I’m trying to build an Ember application and am currently experiencing a fair amount of frustration due to the following issue which I’ve outlined in a [JSFiddle](http://jsfiddle.net/emerson/VuYNs/7/).

- I have a basic route with one nested route.
- Using the {{#linkTo}} helper, I’m able to navigate to the nested route.
- **However** , I am unable to return to the parent route from the child.

It appears that the {{#linkTo}} helper depends on the context of the current view/route. Could someone please pity me and checkout this [JSFiddle](http://jsfiddle.net/emerson/VuYNs/7/).

---

<div class="post-metadata">

**Author:** ![Emerson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/emerson/32/14405_2.png) [@Emerson](https://discuss.emberjs.com/u/Emerson)\
**Post date:** [May 23, 2013, 2:21pm UTC](https://discuss.emberjs.com/t/linkto-and-nested-routes-confusion/1309/2 "2013-05-23T14:21:45Z")

</div>

**Update** : I’ve managed to get around this issue by moving away from nested routes. This being said, I would still love to understand what I’m doing wrong in the JSFiddle I provided.

---

<div class="post-metadata">

**Author:** ![jabulmer121](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jabulmer121/32/4274_2.png) [@jabulmer121](https://discuss.emberjs.com/u/jabulmer121)\
**Post date:** [May 23, 2013, 3:21pm UTC](https://discuss.emberjs.com/t/linkto-and-nested-routes-confusion/1309/3 "2013-05-23T15:21:17Z")

</div>

Just had a quick play with it

> **[Ember Latest - JSFiddle - Code Playground](http://jsfiddle.net/VuYNs/9/)**
>
> Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.

Any better?

---

<div class="post-metadata">

**Author:** ![fayimora](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/fayimora/32/14385_2.png) [@fayimora](https://discuss.emberjs.com/u/fayimora)\
**Post date:** [May 23, 2013, 9:29pm UTC](https://discuss.emberjs.com/t/linkto-and-nested-routes-confusion/1309/4 "2013-05-23T21:29:54Z")

</div>

To go _INTO_ `posts/whatever`, you need an `{{outlet}}` in your `posts` template. Your back button will simply link back to `posts/index`, at least in this case.

This is roughly an explanation of @jabulmer121’s fiddle really.

---

<div class="post-metadata">

**Author:** ![davidpett](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/davidpett/32/10794_2.png) [@davidpett](https://discuss.emberjs.com/u/davidpett)\
**Post date:** [May 23, 2013, 10:13pm UTC](https://discuss.emberjs.com/t/linkto-and-nested-routes-confusion/1309/5 "2013-05-23T22:13:37Z")

</div>

I ran into pretty much the same issue yesterday, but I am using the `{{action}}` helper instead of `{{#linkTo}}`

[Ember parent route - JSFiddle - Code Playground](http://jsfiddle.net/davidpett/SKkpW/) (correct working example)

I was just trying to transitionTo the category route passing context, when I needed to use category.index
