I'm new to ASP.NET MVC and I'm trying to get the full url to a action when working in a view. I need this to submit to a third party API as a callback. For example what I need is
When I use
<%= Url.Action("action", "controller") %>
I get
/controller/action
I know several ways to add the server base-path to this but I'm wondering what is the preferred way to do this in the ASP.NET MVC view?
EDIT: Just to clarify, it's not the URL for the current view/action it's for another action in the same controller.