상자 안의 MVC 어플리케이션을 사용하여 Home 컨트롤러 아래의 액션 링크는 다음과 같이 표현됩니다.액션 링크에서 홈 컨트롤러 경로를 숨기는 방법
@Html.ActionLink("Home", "Index", "Home") >/
@Html.ActionLink("About", "About", "Home") > /Home/About
링크 경로에서 "Home"을 숨기려면 HomeController에 속하는 모든 액션 링크를 어떻게 만들 수 있습니까?
예 :
@Html.ActionLink("About", "About", "Home") > /About
@Html.ActionLink("Contact", "Contact", "Home") > /Contact
@Html.ActionLink("Sitemap", "Sitemap", "Home") > /Sitemap
@Html.ActionLink("Terms", "Terms", "Home") > /Terms
감사