I have Asp.net MVC4 project. I want to make redirect to the external url if specified action is called.
Url should have custom schema, for example not http://
but myschema://
.
I know that to redirect to google.com I can use return Redirect("http://google.com")
, but this doesn't work if I call return Redirect("myschema://someaddress.com")
I need this custom schema to start app on IOS device and I need to do redirection in MVC project because I want to send link to email, this link will lead to action on my site and this action will do redirect to custom schema.
Sending link with custom schema directly in mail is not working because mail servers delete this link from the mail. Also I don't want to redirect user to the frontend where he will need to click to the link with custom schema.
Is it possible or should I do it in other way?