Fix HTTP basic auth credentials being stripped from instance URLs

Preserve user:pass credentials in instance URLs so Invidious instances
behind nginx reverse proxies with HTTP basic auth work correctly (#926).
Add displayURL property to mask credentials in the UI.
This commit is contained in:
Arkadiusz Fal
2026-03-27 17:12:04 +01:00
parent 8a54e1ddbb
commit 2db78c429e
3 changed files with 38 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ private struct EditRemoteServerContent: View {
Form {
Section {
LabeledContent(String(localized: "sources.field.type"), value: instance.type.displayName)
LabeledContent(String(localized: "sources.field.url"), value: instance.url.absoluteString)
LabeledContent(String(localized: "sources.field.url"), value: instance.displayURL)
}
Section {