Fixed html5 redirect issue