diff --git a/app/src/main/assets/welcome.html b/app/src/main/assets/welcome.html
index 84da0d32..23b87b5d 100644
--- a/app/src/main/assets/welcome.html
+++ b/app/src/main/assets/welcome.html
@@ -49,12 +49,20 @@
}
}
+ function getUrl() {
+ const url = urlBox.value.toLowerCase();
+ if (!url.startsWith("http://") && !url.startsWith("https://")) {
+ return "https://" + url;
+ }
+ return url;
+ }
+
function updateLoginEnabled() {
- loginButton.disabled = !validateUrl(urlBox.value);
+ loginButton.disabled = !validateUrl(getUrl());
}
function getMemoriesUrl() {
- const url = new URL(urlBox.value);
+ const url = new URL(getUrl());
// Add trailing slash to the path if it's not there already
if (!url.pathname.endsWith("/")) {