public static string GetLastPathInfo(this Microsoft.AspNetCore.Http.HttpRequest request) { var rawUrl = Microsoft.AspNetCore.Http.Extensions.UriHelper.GetDisplayUrl(request); return GetLastPathInfoFromRawUrl(rawUrl); }