Skip to content

Commit

Permalink
remove slash from url
Browse files Browse the repository at this point in the history
  • Loading branch information
dangershony committed Nov 21, 2023
1 parent 26c0b82 commit 75dfa63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Angor/Client/Pages/Settings.razor
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 75dfa63

Please sign in to comment.