how to get previous page url in current page in .net core code example
Example: how to get previous page url aspnet core
public async Task<IActionResult> Edit(int? id)
{
...
...
ViewBag.returnUrl = Request.Headers["Referer"].ToString();
return View(customer);
}