Hi,
I am working on a theme project and wanted to know the best way to gin or locate the URLs that already exists or that I create myself. for example, I wanted to use my own menu navigation on the left side of the Home page. So, I was able to find the ContactUs Page Url.RouteUrl() and use it as my link. I also look through the code and found the NewsArchive Url.RouteUrl. However, Although I do notice the AboutUs topic page, I couldd not find its Url.RouteUrl anywhere. So, I was able to create it as indicated below.
<ul>
<li><a href="/aboutus">About Homa</a></li>
<li><a asp-controller="News" asp-action="List">Events</a></li>
<li><a href="@Url.RouteUrl("NewsArchive")">@T("News")</a></li>
<li><a href="/pos">Points of Sale</a></li>
<li><a href="/exclusives">Online Exclusives</a></li>
<li><a href="@Url.RouteUrl("ContactUs")">Contact</a></li>
</ul>
Is the a recommended approach for me to use for my Theme links to ease the process with Url.RouteUrl() helpers?