jezsun can you try the following snippet?
On the top of the page add this (or add it in ViewImports.cshtml
):
using Microsoft.AspNetCore.Http.Extensions;
Then where you want to retrieve the value you can use:
var requestUrl = UriHelper.GetDisplayUrl(Request);
Hope this helps,