More than 4 attributes in an asp.net path

0

I have a problem. I need to have four parameters in my route, so that it looks like this.

link

First I was successful when I used only three parameters on the route, like this:

link

but now that I need to use one more parameter, when I run the site in Visual Studio, when I put the mouse over some button and look down in the browser, they all redirect to the index view of home regardless of what a button is, a menu of the navbar, etc.

What may be happening.

That way I have the route configured.

routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}/{id2}/{id3}/{id4}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional, id2 = UrlParameter.Optional, id3 = UrlParameter.Optional, id4 = UrlParameter.Optional } );

    
asked by Alvaro Morales 11.11.2018 в 11:04
source

0 answers