Support for navigation in lifecycle methods.

Fixes ERRAI-516