Trim trailing slash from DataHostname in ProviderDialog

This commit is contained in:
Thorsten Sommer 2024-07-24 18:57:40 +02:00
parent 865b79727e
commit f6f207cffb
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -102,7 +102,7 @@ public partial class ProviderDialog : ComponentBase
UsedProvider = this.DataProvider,
Model = this.DataModel,
IsSelfHosted = this.DataProvider is Providers.SELF_HOSTED,
Hostname = this.DataHostname,
Hostname = this.DataHostname.EndsWith('/') ? this.DataHostname[..^1] : this.DataHostname,
Host = this.DataHost,
};