SyntaxFix
Write A Post
Hire A Developer
Questions
I just discovered you can do it with this call:
Url.Action(new UrlActionContext { Protocol = Request.Scheme, Host = Request.Host.Value, Action = "Action" })
This will maintain the scheme, host, port, everything.