fixed issue #2, where going back a directory wouldn't navigate to parent directories id in router.