juliy.cesar wrote:I am developing plugin and have some admin controllers that should be at /Admin/ area,
How is it possible?
I have tried to add this to roat mapping
routes.MapRoute("Plugin.ReminderTemplateController.List",
"Admin/Plugins/ReminderTemplate/List",
new { controller = "ReminderTemplateController", action = "List", id = UrlParameter.Optional },
new[] { "Nop.Plugin.Widgets.BasketReminder.Controllers" }).DataTokens.Add("area", "Admin"); ;
but Admin/Plugins/ReminderTemplate/List still go 404
and only
ReminderTemplate/List works fine.
Try using 5 parts in the URL instead of 4, so something like this:
routes.MapRoute("Plugin.ReminderTemplateController.List",
"Admin/Plugins/Reminder/ReminderTemplate/List",
new { controller = "ReminderTemplateController", action = "List", id = UrlParameter.Optional },
new[] { "Nop.Plugin.Widgets.BasketReminder.Controllers" }).DataTokens.Add("area", "Admin"); ;
I can't remember where I read it but I seem to recall that the admin area has an issue with 4 part urls. Presumably some sort of conflict with the existing routing but I'm a bit sketchy about the details.