For some reason I am having lots of trouble trying to find out how to redirect (HTTP 302 Found
) to an absolute URL from within a controller.
I have tried this:
this.Redirect("/assets/images/avatars/profile.jpg");
But I get an exception thrown
Exception thrown: 'System.UriFormatException' in System.dll
Additional information: Invalid URI: The format of the URI could not be determined.
Every other answer I see on here doesn't seem to be available to me. I am using Web API
and MVC 5
.