When I try to redirect to custom URI Scheme like: openURL://
, the web browser directs me to a relative path: http://localhost/myServer/Main/openURL
instead of displaying openURL://
.
My code:
public class MainController : Controller
{
public ActionResult MyAction()
{
return Redirect("openURL://");
}
}
I also used :
public class MainController : Controller
{
public ActionResult MyAction()
{
return new RedirectResult("openURL://");
}
}
but it did not work.