feat(middleware/navigation.js): feature 719 - middleware/navigation.js
- unit tests