Get uri LocalPath in jquery/JS?
<p>simple problem with a simple question. I have a string, in C# i can put it through a uri and access LocalPath</p>

<p>How do i get LocalPath in jquery or javascript? (    LocalPath: "/asas")</p>

<p>{http://z.com/asas?sadfdsgfg}</p>

<pre><code>AbsolutePath: "/asas"
AbsoluteUri: "http://z.com/asas?sadfdsgfg"
Authority: "z.com"
DnsSafeHost: "z.com"
Fragment: ""
Host: "z.com"
HostNameType: Dns
IsAbsoluteUri: true
IsDefaultPort: true
IsFile: false
IsLoopback: false
IsUnc: false
LocalPath: "/asas"
OriginalString: "http://z.com/asas?sadfdsgfg"
PathAndQuery: "/asas?sadfdsgfg"
Port: 80
Query: "?sadfdsgfg"
Scheme: "http"
Segments: {string[2]}
UserEscaped: false
UserInfo: ""
</code></pre>
