You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on Culture based project. It prefix culture in url. But using LowercaseDashedRoute does not work with it. The code in route config is:
routes.Add(new LowercaseDashedRoute("{culture}/mysite/{parentitem}/{item}/{id}",
new RouteValueDictionary(
new {
culture = String.Empty,
controller = "Items",
parentitem = "Products",
action = "Details",
item = UrlParameter.Optional,
id = UrlParameter.Optional}),
new DashedRouteHandler()
)
);
And Default route is:
routes.MapRoute(
name: "Default",
url: "{culture}/{controller}/{action}/{id}",
defaults: new { culture = String.Empty, controller = "Home", action = "Index", id = UrlParameter.Optional }
);
I am working on Culture based project. It prefix culture in url. But using LowercaseDashedRoute does not work with it. The code in route config is:
routes.Add(new LowercaseDashedRoute("{culture}/mysite/{parentitem}/{item}/{id}",
new RouteValueDictionary(
new {
culture = String.Empty,
controller = "Items",
parentitem = "Products",
action = "Details",
item = UrlParameter.Optional,
id = UrlParameter.Optional}),
new DashedRouteHandler()
)
);
And Default route is:
routes.MapRoute(
name: "Default",
url: "{culture}/{controller}/{action}/{id}",
defaults: new { culture = String.Empty, controller = "Home", action = "Index", id = UrlParameter.Optional }
);
It makes a url like:
http://localhost:62652/en-US/mysite/Solutions/Paints%2c%20Coatings%20%26%20Adhesives/9
Am I missing something?
The text was updated successfully, but these errors were encountered: