OrchardCore - Problem when 2 webprojects have same controller name and action name #7155
Unanswered
nsathiyamoorthi
asked this question in
Q&A
Replies: 2 comments 2 replies
|
Try using MapAreaControllerRoute in both projects. |
2 replies
|
Don't use In place, use one of our And as @Skrypt said, always use an area, it is usually a module name, but when defined from the app it is the app name. Note: The application (or part of it) can behave as a module, but the related things need to be registered / configured in a tenant container as it is done through a module startup, this is the goal of our |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We are planning to implement modular concept in our application using OrchardCore. While doing POC we ran into below problem.
We have 2 web projects
Shell Project, contains the layout, shared static assets (css,js) and common home page (Home Controller with action Index)
Module1,This also has a controller called "Home" with action "Index"
Issue is even when i call the route https://localhost:44335/Module1/Home/Index , it is still redirecting me to https://localhost:44335:/home/index
But call to my other controller https://localhost:44335:Module1/Management/Index is working as expected. only if both have the same Controller and Action, then shell project takes preference automatically.
Startup in Shell

Startup in Module1

How do i force the system to redirect user to corresponding page even if 2 projects have the same controller name?
All reactions