When closing a dialog it shouldn't go back in history, but rather just go to the base route (but not scroll to top)