Error in docs or Error in Ember?


#1

Put this code in my a sub application route. Ex. /portal/sub

actions: {
        willTransition: function(){
            console.log('Transitioning');
        }
    }

I manually go to the URL the route matches but the code does not fire. If i {{link-to}} that route it fires.

This documentation:

http://guides.emberjs.com/v1.11.0/routing/preventing-and-retrying-transitions/

Says

When a transition is attempted, whether via {{link-to}}, transitionTo, or a URL change, a willTransition action is fired on the currently active routes. This gives each active route, starting with the leaf-most route, the opportunity to decide whether or not the transition should occur.

What is the correct behavior?