For some browsers, you will not be able to redirect to a protocol other than HTTP or HTTPS. You can't do anything about it.
You can try to change the location on the client side of the browser using JavaScript, if possible for your application. This also will not always work.
source share