So I have an asp.net MenuItem user control created ( similar to what this post has ) within inside a MVC view. The user control works as expected, except the NavigateUrl.
This is the menuitem inside the usercontrol.
<asp:MenuItem Text="View Account" NavigateUrl="~/pages/account.aspx" />
The link looks fine if the user control is being rendered from a webform, it shows
http://localhost/SampleTest/pages/account.aspx
However, put the usercontrol inside the mvc view will have it rendered as
http://localhost/SampleTest/SampleTest/pages/account.aspx
There's an extra domain name "SampleTest" in the url.
What should I do to get rid of the extra domain name?