How to make route patterns work? #10100
Answered
by
xperiandri
xperiandri
asked this question in
Q&A
-
I use Orchard Core Framework without CMS. routes.MapAreaControllerRoute(
name: "Bitrix24.Tenant",
areaName: "Bitrix24.Tenant",
pattern: "{controller}/{action=Index}"
); But it does not work. The only way it works is only with an explicit route like routes.MapAreaControllerRoute(
name: "Bitrix24.Tenant",
areaName: "Bitrix24.Tenant",
pattern: "Home",
defaults: new {controller = "Home", action = nameof(HomeController.Index)}
); How to make patterns with variables work? |
Beta Was this translation helpful? Give feedback.
Answered by
xperiandri
Aug 11, 2021
Replies: 1 comment
-
Interesting, after I started the app with routes.MapAreaControllerRoute(
name: "Bitrix24.Tenant",
areaName: "Bitrix24.Tenant",
pattern: "{controller=Home}/{action=Index}"
); it started to work. routes.MapAreaControllerRoute(
name: "Bitrix24.Tenant",
areaName: "Bitrix24.Tenant",
pattern: "{controller}/{action=Index}"
); and it works too |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xperiandri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting, after I started the app with
it started to work.
Then I switched back to
and it works too