locked
How to generate url to friendly route with asp-page RRS feed

  • Question

  • User-81839486 posted

    I have friendly route configured in startup configureservices

    services.AddRazorPages()
    .AddRazorPagesOptions(options =>
     {
    options.Conventions.AddPageRoute("/Admin/PagesWithTables/ShowLicencjeTable", "ShowLicencjeTable");
    });

    I want to generate url with asp-page 

    <li class="nav-item">
        class="nav-link text-dark" asp-area="" asp-page="/ShowLicencjeTable">moje licencje</a>
    </li>

    but I get empty url: href="". How can I configure my url with tag helper?

    Wednesday, August 26, 2020 6:37 PM

All replies