Fixed issue with history being unavailable due to js redirection.