I am trying to figure out how to redirect to a razor page and have an anchor tag attached to the URL.
My code:
public IActionResult OnPost()
{
return RedirectToPage("Detail",
new
{
id = applicant.applicantId
})
}
This takes the user to the detail page with an id like so: /Detail?id=098776
What I actually need is to send the user to an Anchor in the page like this: /Detail?id=098776#thisplaceinpage
Anyone know how I would make that happen with the code above?
