This is my root folder .NET Core Web Application
I had try [Route("mynewarea/[controller]/[action]")] in Areas but it not working
My code in the Startup.cs file
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthorization();
//Routing App
app.UseEndpoints(endpoints =>
{
// Routing Area
endpoints.MapAreaControllerRoute(
name: "Areas",
areaName: "Areas",
pattern: "{area:exists}/{controller=Home}/{action=Index}/{id?}");
//Routing Controller
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
//Handle to Error Page
});
And i had references in this link Area endpoint routing in asp.net core 3.1 but int doc of Microsoft said Security patch
Problem
http://localhost:xxxx/TIMS //It is not working
http://localhost:xxxx/TIMS/Home/Index // work
Expect
http://localhost:xxxx/TIMS //Work
question from:
https://stackoverflow.com/questions/65948856/router-areas-in-net-core-3-1-not-working 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…