is there another way on getting the current url in mvc same in the code in window.location.href, so that i can manage the content?,
Problem
i have a url https://Mylink.com/Data?#address=ph that i want to get address value. my problem is, when i tried to get the url by doing Request in controller, only the https://Mylink.com/Data will get, querystring is also empty.
My Codes:
public string Data()
{
    var url = Request.Url;
    var addr = url.IndexOf('#') > -1 ? url.Substring(url.IndexOf('#'),url.Length): "";
    return addr;
}
any suggestion will be accepted, thank again in advance
 
     
    