diff --git a/src/Angor/Client/Pages/Settings.razor b/src/Angor/Client/Pages/Settings.razor index e04ffc11..4298ded4 100644 --- a/src/Angor/Client/Pages/Settings.razor +++ b/src/Angor/Client/Pages/Settings.razor @@ -172,7 +172,7 @@ return; } - newIndexerLink = new Uri($"{uri.Scheme}://{uri.Host}").ToString(); + newIndexerLink = new Uri($"{uri.Scheme}://{uri.Host}").AbsoluteUri.TrimEnd('/'); if (settingsInfo.Indexers.Any(a => a.Url == newIndexerLink)) { @@ -204,7 +204,7 @@ return; } - newRelayLink = new Uri($"{uri.Scheme}://{uri.Host}").ToString(); + newRelayLink = new Uri($"{uri.Scheme}://{uri.Host}").AbsoluteUri.TrimEnd('/'); if (settingsInfo.Relays.Any(a => a.Url == newRelayLink)) {