I am trying to get the url of my current webpage.
I am using asp.net with MVC.
When I debug the code,see below, currentUri value is https://localhost:44377/. Should really be https://www.google.ca/. Please help.
public class HomeController : Controller
{
public ActionResult Index()
{
Response.Redirect("https://www.google.ca/", true);
string currentUri = HttpContext.Request.Url.AbsoluteUri;
return View();
}
}