{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/4399","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/4399/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/4399/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/4399/events","html_url":"https://github.com/emberjs/ember.js/issues/4399","id":27845643,"number":4399,"title":"transitioning to a stored transition between subroutes fails","user":{"login":"tomclose","id":29596,"avatar_url":"https://avatars.githubusercontent.com/u/29596?v=3","gravatar_id":"","url":"https://api.github.com/users/tomclose","html_url":"https://github.com/tomclose","followers_url":"https://api.github.com/users/tomclose/followers","following_url":"https://api.github.com/users/tomclose/following{/other_user}","gists_url":"https://api.github.com/users/tomclose/gists{/gist_id}","starred_url":"https://api.github.com/users/tomclose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomclose/subscriptions","organizations_url":"https://api.github.com/users/tomclose/orgs","repos_url":"https://api.github.com/users/tomclose/repos","events_url":"https://api.github.com/users/tomclose/events{/privacy}","received_events_url":"https://api.github.com/users/tomclose/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emberjs/ember.js/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":{"login":"machty","id":81818,"avatar_url":"https://avatars.githubusercontent.com/u/81818?v=3","gravatar_id":"","url":"https://api.github.com/users/machty","html_url":"https://github.com/machty","followers_url":"https://api.github.com/users/machty/followers","following_url":"https://api.github.com/users/machty/following{/other_user}","gists_url":"https://api.github.com/users/machty/gists{/gist_id}","starred_url":"https://api.github.com/users/machty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machty/subscriptions","organizations_url":"https://api.github.com/users/machty/orgs","repos_url":"https://api.github.com/users/machty/repos","events_url":"https://api.github.com/users/machty/events{/privacy}","received_events_url":"https://api.github.com/users/machty/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2014-02-19T02:06:17Z","updated_at":"2015-09-16T21:35:39Z","closed_at":"2014-04-17T14:27:49Z","body":"I have a route setup like this:\r\n\r\n    App.Router.map(function(){\r\n      this.resource('login');\r\n\r\n      this.resource('order', { path: '/orders/:order_id' }, function(){\r\n        this.resource('checkout');\r\n      })\r\n    });\r\n\r\nThe checkout path is protected by an authenticated route, that stores the attempted transition:\r\n\r\n    App.AuthenticatedRoute = Ember.Route.extend({\r\n      beforeModel: function(transition) {\r\n        var loggedIn = this.controllerFor('application').get('isLoggedIn');\r\n        if (!loggedIn) {\r\n          this.redirectToLogin(transition);\r\n        }\r\n      },\r\n\r\n      redirectToLogin: function(transition) {\r\n        var applicationController = this.controllerFor('application');\r\n        applicationController.set('attemptedTransition', transition);\r\n        this.transitionTo('login');\r\n      },\r\n    });\r\n    \r\n    App.CheckoutRoute = App.AuthenticatedRoute.extend({});\r\n\r\nAfter login the transition is retried, but the app attempts to transition to `login.checkout` instead of back to the order.\r\n\r\nThe same code seems to work in ember 1.3, but fails in 1.4 and higher.\r\n\r\nThere is a small app reproducing the issue here: https://github.com/tomclose/ember_sub_route_transition_example\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/140901374","html_url":"https://github.com/emberjs/ember.js/issues/4399#issuecomment-140901374","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/4399","id":140901374,"user":{"login":"egrotke","id":714215,"avatar_url":"https://avatars.githubusercontent.com/u/714215?v=3","gravatar_id":"","url":"https://api.github.com/users/egrotke","html_url":"https://github.com/egrotke","followers_url":"https://api.github.com/users/egrotke/followers","following_url":"https://api.github.com/users/egrotke/following{/other_user}","gists_url":"https://api.github.com/users/egrotke/gists{/gist_id}","starred_url":"https://api.github.com/users/egrotke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egrotke/subscriptions","organizations_url":"https://api.github.com/users/egrotke/orgs","repos_url":"https://api.github.com/users/egrotke/repos","events_url":"https://api.github.com/users/egrotke/events{/privacy}","received_events_url":"https://api.github.com/users/egrotke/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T21:35:39Z","updated_at":"2015-09-16T21:35:39Z","body":"I was having this issue, using Ember 1.7.1\r\nIncluding the id for the dynamic route in the link-to call solved it for me, eg:\r\n{{#link-to \"home.index\" id tagName=\"li\"}}"}}