mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Added ParentUriString to get the parent site URI from any URI.
This commit is contained in:
parent
95cdc4b78c
commit
f3f2691b4d
2 changed files with 85 additions and 1 deletions
|
@ -49,7 +49,7 @@ namespace NzbDrone.Core
|
|||
|
||||
public static string ParentUriString(this Uri uri)
|
||||
{
|
||||
return uri.AbsoluteUri.Remove(uri.AbsoluteUri.Length - String.Join("", uri.Segments).Length);
|
||||
return uri.AbsoluteUri.Remove(uri.AbsoluteUri.Length - String.Join("", uri.Segments).Length - uri.Query.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue