Orchard Custom module Priority does not work

Topics: Administration, Core, General, Writing modules
Jul 31, 2013 at 10:44 AM
Edited Jul 31, 2013 at 10:45 AM
I had tried to override the default orchard route and tried to make my custom module as start-up module with custom priority but it does not works.I want that my custom module will be as start up module.but it does not works.I am new getting it right any help !
public class DefaultRouteProvider : IRouteProvider
    {
        public void GetRoutes(ICollection<RouteDescriptor> routes)
        {
            foreach (var routeDescriptor in GetRoutes())
            {
                routes.Add(routeDescriptor);
            }
        }

        public IEnumerable<RouteDescriptor> GetRoutes()
        {
            return new[] {
                              new RouteDescriptor {                                                     
                                                      Priority = 110,
                                                      Route = new Route(
                      "/Modules/ImidusHardware/{controller}/{action}/{id}",
                                          new RouteValueDictionary {
                                          {"area", "ImidusHardware"},
                                           {"controller", "Hardware"},
                                            {"action", "ViewHardware"},
                                              {"id", ""}
                                             },
                                new RouteValueDictionary(),
                                   new RouteValueDictionary {
                                         {"area", "ImidusHardware"}
                                         },
                                            new MvcRouteHandler())
                                                  },
                          };
        }}}
Coordinator
Jul 31, 2013 at 7:24 PM
You might want to check that there is no active alias on route /
Aug 1, 2013 at 5:49 AM
Edited Aug 1, 2013 at 6:37 AM
I had enable Alias-UI module and set my custome module as home that's works for me Thankx