1

I am trying to get the full URL of a page using C# Razor code (ex: https://stackoverflow.com/questions/ask).

When I tried looking up how to do this, everyone has access to Request.Url, HttpContent.Current.Request, or something similar. However, these are not available to me (I'm assuming becuase I am using .NET Core, not sure).

Has anyone found a way to do this?

Camilo Terevinto
  • 31,141
  • 6
  • 88
  • 120
Austin VB
  • 36
  • 5

0 Answers0