ASP.Net MVC: "Random" URLs getting generated by URL.Action
- by Daniel Magliola
I have 2 very similar routes, just because i'm trying to generate two different URLs for the same resource (same Controller/Action), and both are very similar.
These are the routes definitions:
routes.MapRoute("Post2.Mp3", "sites/{siteSlug}/post/{brand}/aconstant-{slug}.mp3", new { controller = "Posts", action = "Mp3" }, new { siteSlug =…