0
リンクURLはサーバーには問題はありますが、ローカルで正しくありません。私のリンクは私のサイトの悪いURLにリンクしていますか?
私が使用:
Url.Action("myaction", "mycontroller", new { id = a.Id, title = a.Title,Name="test", area = "" })
と:ローカルで
routes.MapRoute(
name: "ViewRout",
url: "{lang}/{Name}/{id}/{title}",
defaults: new { controller = "mycontroller", action = "myaction", lang = "en", id = UrlParameter.Optional, title = UrlParameter.Optional },
constraints: new { id = @"\d+",
namespaces: new[] { string.Format("{0}.Controllers", typeof(RouteConfig).Namespace) }
);
URL:
/en/test/6546/title1
しかし、サーバ内のURL(常にではない、多くの場合、時々ちょうど悪いです!) :
/x1(a)xsyidfjazxdfdsxd/en/test/6546/title1
私を助けてください!