According to this answer, the way to do it in MVC Razor is @Request.RawUrl , @Request.Url.ToString() or @Request.Url.AbsoluteUri .
On my razor page, ReSharper resolves @Request to using @Nancy , and I cannot find an instance of HttpRequestBase.RawUrl .
How to get RawUrl from a template served by Nancy?
razor nancy
Justin Dearing
source share