History tries to load additional URLs separated by #! on page load. This makes no sense on login page. However we need to preserve them when logging in. refs #6935