Skip to content

Anchor tag helper

Mariusz Kerl edited this page Dec 15, 2017 · 2 revisions

Rendering anchor tag is easy and does not require any extra work.

<a asp-controller="Home" asp-action="Index" asp-route-tenant="mycompany">Home index</a>

If your host is http://mycompany.localhost:54575 will render

<a href="/">Home index</a>

when current host is different it will render

<a href="http://mycompany.localhost:54547">Home index</a>

Clone this wiki locally