I'm building a decoupled CMS site using Orchard Core. I have a strange issue where asp-page
tag helper redirects me to a URL path on the admin panel. Example:
<a class="nav-link text-dark" asp-area="" asp-page="/Privacy">Privacy</a>
redirects to
https://localhost:7181/Admin/OrchardCore.Settings/Admin/Index?page=%2FPrivacy
I might have accidentally messed up something in the Orchard configuration, I've been playing with it a lot, but now I cannot quite make it behave as expected.
You need to specify the 'asp-area' attribute to be the name of your module.