But when it renders in the browser, the actual link is “/api/sitecore/Home/Index” as hown below. So when I click on the link it is redirecting to this path, instead of /home/index. This issue is not specific to the layout file. Any where in the solution if I use
Html.ActionLink to create a hyperlink, it is rendering to api/sitecore/controller/action.