I'm on working an Asp.net MVC project that I have use an URL like that:
<a href="@Url.Action("Index","Privacy")#Legal" target="_blank">Terms and Conditions</a>
Which I want it go to: /Privacy/Index#Legal
But it auto added the slash which make the URL not good: /Privacy/Index#/Legal
What I'm wrong? Sorry I'm a new Asp.net MVC developer. Thanks
UPDATED: I found the problem that my project used AngularJS, the solution that config the $locationPrivider will solve the problem:
$locationProvider.html5Mode({
enabled: true,
requireBase: false,
rewriteLinks: false
});
Thanks for all your support.