我遇到了一个问题 w/ Url.Action 没有指向正确的本地主机,有人可以告诉我如何纠正这个问题吗?
相同的信息适用于“Html.ActionLink”
@<li>@Html.ActionLink(cattext, "Topic", "Tutorial", New With {.categorypassed = "INTRO"}, vbNull)</li>
返回以下链接:
http://localhost:62510/Tutorial/Topic?categorypassed=INTRO
但是,如果我将此信息用作“Url.Action”:
<a data-role="button" data-transition="fade" href="@Url.Action("Topic", "Tutorial", New With {.categorypassed = "INTRO"}, vbNull)" data-icon="arrow-l" data-iconpos="left">Back</a>
它返回一个虚假的本地主机:
1://localhost/Tutorial/Topic?categorypassed=INTRO