how to get current route controller full url path in net core 3.1?
if I am in method test of mycontroller, it should be:
https://example.com/demo/x/api/my/test
how to get https://example.com/demo/x/api/my
programmatically?
I try:
String originalPath = new Uri(HttpContext.Request.GetDisplayUrl()).AbsoluteUri;
it returns http://example.com/my/test