I have an MVC project that needed to have the URL structure changed. I’ve modified the Global.asax.cs file so that all the URL’s are now reflecting what the account team wanted. Long story short, there is a requirement to have a tailing ‘/’ on all of the URL’s (i.e. http://www.google.com/whatever/ ).
I think the best way to do this is to override the Html.ActionLink() function so all the URL’s are generated the desired way but I’m not sure where/how to do this.
Thnx for any help
Check this other StackOverflow question:
Why is ASP.NET MVC ignoring my trailing slash?
Quoting the approved answer:
.
Another approach: