Close navigations when link clicked.