Fix navigate.exit preventing and history "backward" navigation.