This is a little annoying thing. Definitely not a show stopper. What is the equivalent of Request.ServerVariables? Specifically, I would like to know how I get the current url. I have previously done this by getting Request.ServerVariables["script_name"]. I hate hardcoding text into a program, and I am finding that I would need to get the url of the current page. I'd like to get the current url of the running razor page, but I can't figure out why. Does anyone else know how to get the current url in the current page?
TIA.