How to use HTML links in ASP.Net Core MVC?
<p>I'm currently trying to make a website in ASP.NET Core MVC. In my layout page, I'm making a navigation bar to access all of the actions that can be reached through my controllers. I am however unable to create useful links.</p>

<pre><code>&lt;ul&gt;
        &lt;li&gt;&lt;a href="homepage"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="index"&gt;Index&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>My problem with this is that I still need the controller before the links and if I put the controller in front of the action like this</p>

<pre><code>&lt;ul&gt;

        &lt;li&gt;&lt;a href="home/homepage"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="home/index"&gt;What We've Done&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>When I click on one link and then the other, the link will end up being "myurl/home/home/page".</p>

<p>How can I create the link to only link to the exact page I want to?</p>