我的项目路线有一个奇怪的问题。这是我的路线:
            // pennames
        routes.MapRoute(
            "pennames", // Route name
            "MyHome/Authors/{action}/{id}", // URL with parameters
            new { controller = "Author", action = "Index", id = UrlParameter.Optional } // Parameter defaults
        );
        // article
        routes.MapRoute(
            "article", // Route name
            "MyHome/Articles/{action}/{id}", // URL with parameters
            new { controller = "Article", action = "Index", id = UrlParameter.Optional } // Parameter defaults
        );
站点结构为:
Controllers 
- > MyHome -- 
> AuthorController 
-- > ArticleController - 
> Views 
--> Article 
---> Index.aspx 
-> Author 
-> Index.aspx  
但是当我打电话时
RouteTable.Routes.GetVirtualPath(this.viewContext.RequestContext..
从 /MyHome/Article 页面,它总是返回第一条路线(MyHome/Author)
好吧,我在做什么错?