I am using nopCommerce. I am developing a plugin project.
When I tried to redirect the admin page to the plugin page, this gives an error, for example,
"PAGE NOT FOUND"
URL of my plugin page
localhost:2276/Admin/Category/List
But it works correctly for this URL
localhost:2276/Plugin/Category/List
RouteProvider.cs
public partial class RouteProvider : IRouteProvider
{
public void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute("Nop.Plugin.Category.ShopByCategory.Views.Category.List",
"Admin/Category/List",
new { controller = "Category", action = "List" },
new[] { "Nop.Plugin.Category.ShopByCategory.Controllers" });
}
public int Priority
{
get { return 0; }
}
}
I need to implement this at this URL localhost:2276/Admin/Category/List. Is there any other way to implement this?
source
share