Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MvcSiteMapProvider Generate wrong URL #478

Open
MuhammadAbdelsalam opened this issue Apr 19, 2018 · 0 comments

Comments

@MuhammadAbdelsalam
Copy link

commented Apr 19, 2018

Hi,

I already configure the MvcSiteMapProvider but when i use with custom route generate right breadcrumb titles with urls without controller and action.

kindly find sample from my route and xml configuration.

and route

routes.MapRoute(
name: "LookupsLocalized",
url: "{lang}/Lookups/{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
, namespaces: new[] { "Linkdev.MofaicAid.Internal.Web.Controllers.Lookups" }
);

routes.MapRoute(
name: "DefaultLocalized",
url: "{lang}/{controller}/{action}/{id}",
constraints: new { lang = @"(\w{2})|(\w{2}-\w{2})" }, // en or en-US
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.