Another baseurl related fix

Baseurl always starts with a '/' (unless it's empty)
This commit is contained in:
Bond_009 2020-02-12 20:57:34 +01:00
parent 662e1164c9
commit f5db4c8402
2 changed files with 2 additions and 1 deletions

View File

@ -1522,7 +1522,7 @@ namespace Emby.Server.Implementations
string baseUrl = ServerConfigurationManager.Configuration.BaseUrl; string baseUrl = ServerConfigurationManager.Configuration.BaseUrl;
if (baseUrl.Length != 0) if (baseUrl.Length != 0)
{ {
url.Append('/').Append(baseUrl); url.Append(baseUrl);
} }
return url.ToString(); return url.ToString();

View File

@ -165,6 +165,7 @@ namespace MediaBrowser.Model.Configuration
public bool SkipDeserializationForBasicTypes { get; set; } public bool SkipDeserializationForBasicTypes { get; set; }
public string ServerName { get; set; } public string ServerName { get; set; }
public string BaseUrl public string BaseUrl
{ {
get => _baseUrl; get => _baseUrl;