Fixed redirect issues with Angular HTML5 mode