/// <summary> /// Redirect the response to a relative path. /// </summary> /// <returns>HTTP [302] Redirect.</returns> public static HttpHandlerResult Redirect(HttpReceiverContext context, string path, object queryArgs = null) { var urlUtility = new UrlUtility(context); var url = urlUtility.GetRelative(path, queryArgs); return(new HttpHandlerResult { StatusCode = (int)HttpStatusCode.Redirect, redirectUrl = url, }); }