Fixed deprecated :history and fixed login sequence to support 302 redirect where location is only a URI