Do not include a double slash in URLs when a base URL is not set

This commit is contained in:
Mark Monteiro
2020-05-10 18:07:56 -04:00
parent dc5165b97f
commit 3abf870c1e
3 changed files with 15 additions and 14 deletions

View File

@@ -76,7 +76,7 @@ namespace MediaBrowser.Controller
/// over HTTP (not HTTPS).
/// </summary>
/// <returns>The API URL.</returns>
public Uri GetLoopbackHttpApiUrl();
string GetLoopbackHttpApiUrl();
/// <summary>
/// Gets a local (LAN) URL that can be used to access the API. HTTPS will be preferred when available.
@@ -98,7 +98,7 @@ namespace MediaBrowser.Controller
/// preferring the HTTPS port, if available.
/// </param>
/// <returns>The API URL.</returns>
Uri GetLocalApiUrl(ReadOnlySpan<char> hostname, string scheme = null, int? port = null);
string GetLocalApiUrl(ReadOnlySpan<char> hostname, string scheme = null, int? port = null);
/// <summary>
/// Open a URL in an external browser window.