Infinite URL Parameters for ASP.NET MVC Route

Like this:

routes.MapRoute("Name", "tag/{*tags}", new { controller = ..., action = ... });

ActionResult MyAction(string tags) {
    foreach(string tag in tags.Split("https://stackoverflow.com/")) {
        ...
    }
}

Leave a Comment