Currently allowInsecureRedirect=false blocks any redirect that changes protocol.  But a site that redirects from its http URL to its equivalent https URL is not being insecure, its increasing security.
The check should only be applied if the old protocol is https and the new protocol is http