Instead of using Url.Action, couldn't you just write your own <a href>?
On 12 April 2013 11:17, Greg Low (GregLow.com) <[email protected]> wrote: > Hi Folks,**** > > ** ** > > In MVC4, in the code for a controller, what’s the best way to calculate > the fully qualified URL for a particular action?**** > > ** ** > > Eg: If I use **** > > ** ** > > Url.Action(“SomeAction”,”SomeController”)**** > > ** ** > > The intellisense for Action says “gets a fully qualified URL”. However > what I get back is:**** > > ** ** > > /SomeController/SomeAction**** > > ** ** > > What I want is:**** > > ** ** > > http://www.whateversiteIhit.com/SomeController/SomeAction<http://www.somesite.com/SomeController/SomeAction> > **** > > ** ** > > As I need to pass it to an external callback.**** > > ** ** > > What’s the best way to do that?**** > > ** ** > > Regards,**** > > ** ** > > Greg**** > > ** ** > > Dr Greg Low**** > > CEO and Principal Mentor**** > > *SQL Down Under*** > > SQL Server MVP and Microsoft Regional Director**** > > 1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913fax > **** > > Web: www.sqldownunder.com**** > > * * > > ** ** >
