Fixed bug with oauth redirect with html5Mode on or special hashbangs.