I don't know what changed in my code to cause the areas pages to become inaccessible. Apparently it is derived from a change in the routing.
I cannot access my areas identity register or login page on my mvc app. I get the error 404. Or the response headers (post and action) just stays the same
if I try to navigate there from another page. My routing methods are attached below.
I cannot figure out how to implement the MapControllerRoute or MapAreaControllerRouteor from the MIcrosoft docs. The docs don't explain the full syntax needed
to implement the methods.
I cannot access my areas identity register or login page on my mvc app. I get the error 404. Or the response headers (post and action) just stays the same
if I try to navigate there from another page. My routing methods are attached below.
C#:
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "SlugRoute",
pattern: "BlogPosts/UrlFriendly/{slug}",
defaults: new { controller = "Posts", action = "Details"
);
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}"
);
}
I cannot figure out how to implement the MapControllerRoute or MapAreaControllerRouteor from the MIcrosoft docs. The docs don't explain the full syntax needed
to implement the methods.
Last edited by a moderator: