diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index 5fe8843b..eec41eb2 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -208,7 +208,13 @@ export function SettingsPage() { // when backend url gets changed, log the user out first if (state.backendUrl.changed) { await logout(); - setBackendUrl(state.backendUrl.state); + + let url = state.backendUrl.state; + if (url && !url.startsWith("http://") && !url.startsWith("https://")) { + url = `https://${url}`; + } + + setBackendUrl(url); } }, [ state,