Url.Action in controller generates port twice
问题 I am using below piece of code to generate a fully qualified url and pass it back as json for redirection. returnUrl = Url.Action("ActionName", "Controller", new RouteValueDictionary(new { type= returnUrl }), HttpContext.Request.Url.Scheme, HttpContext.Request.Url.Authority); returnUrl will initially have a value either type1 or type2 which is why I have given type as returnUrl and then replacing its value with a generated url , but it generates http://localhost:49518:49518/Controller