Render template under user primary navigation

My plugin is to add a new tab in user primary navigation and show a page when clicking it. But the page is not showed at the proper place. See:

Like the other tabs (e.g. Badges), I want the template to render under the navigation and the route should include /u/:username/. How to do it in the right way?

The plugin code can be found on github. Any suggestions would be greatly appreciated.

إعجاب واحد (1)

Finally made it work. The key is to modify license-route-map.js.es6 like this:

export default {
  resource: 'user',
  map () {
    this.route('license', { resetNamespace: true })
  }
}
إعجاب واحد (1)