0

In GoDaddy shared windows hosting, Any domain/subdomain I hosted on Subfolders, shows complete Relative Path in browser address bar. Can any one suggest a workaround/fix for this issue.

e.g. Go to us.justcustomercare.com, notice any link in this page shows full relative path /us.justcustomercare.com/domains/us.justcustomercare.com/

I am using Razor, LinkExtensions.ActionLink to create the html anchors in Asp.net MVC4.

gunr2171
  • 16,104
  • 25
  • 61
  • 88
  • How are you generating the links? Notice that "Contact Us" does not have the extra parts: http://us.justcustomercare.com/Home/Contact – Andy T Apr 03 '14 at 17:13
  • @QuetiM.Porta, thanks for the update.... If I use plain HTML for creating link like this Contact Us, it works fine. However, if I use LinkExtensions.ActionLink, it resolves to complete relative path. – Ashok Kumar Apr 03 '14 at 17:21

1 Answers1

1

Based on the MSDN documentation LinkExtensions.ActionLink Method

Returns an anchor element (a element) that contains the virtual path of the specified action.

Instead, use @Html.ActionLink()

Andy T
  • 10,223
  • 5
  • 53
  • 95