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
도와주세요!