I’m building an app in Ember 2.2 and I have a modal – activations – that I want to be able to open on top of 2 different routes – index and show. I’ve setup the router as follows:
Router.map -> @route 'rules', path: '/', -> @route 'index', path: '/', -> @route 'activations', resetNamespace: true @route 'new' @route 'show', -> @route 'activations', resetNamespace: true @route 'edit' @route 'schedule'
This works just the way I want it to when I enter the urls in the address bar (i.e. the activations template is rendered into the index’s outlet from /activations and it’s rendered into the show’s outlet in /show/activations).
But, when I try to use the
link-to helper in a template, it always redirects to /show/activations:
app/templates/rules/index.emblem li: link-to 'activations' | activations
I’d expect the above to transition to /activations and render the activations template in the index’s outlet. Instead, it’s transitioning to show and rendering the template in there.
Hints, tips or tricks would be greatly appreciated.