# How do I extend a built-in nested route in Ember?

**URL:** <https://meta.discourse.org/t/how-do-i-extend-a-built-in-nested-route-in-ember/53467>\
**Category:** Development\
**Created:** [2016 年 11 月 28 日午前 6:21 UTC](https://meta.discourse.org/t/how-do-i-extend-a-built-in-nested-route-in-ember/53467 "2016-11-28T06:21:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2016 年 11 月 28 日午前 6:21 UTC](https://meta.discourse.org/t/how-do-i-extend-a-built-in-nested-route-in-ember/53467/1 "2016-11-28T06:21:36Z")

</div>

Mainly a question for @eviltrout

I am trying to extend some of the internal routes for the solved plugin.

I tried adding `assets/javascripts/discourse/solved-route-map.js` with:

```plaintext
export default function() {
  this.route('user', { resetNamespace: true, path: '/users/:username'} , function() {
    this.route('userActivity', { resetNamespace: true, path: 'user-activity' } , function() {
      this.route('solved');
    });
  });
};

```

Trouble is that it blows away the existing routes and pretty much breaks everything, I also tries with `resource` using the other mechanism but it does not play nice with nested routes.

Any idea how I would go about doing this?

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-extend-a-built-in-nested-route-in-ember/53467)._
