Allow saving bookmarks with authenticated URLs

Bookmarks behind authentication couldn't be saved.
The app didn't allow saving when URL metadata check failed, even
though Linkding accepts these URLs.
The error message still displays to inform users that metadata
couldn't be fetched, but it no longer blocks saving.
This commit is contained in:
Stefano Tortarolo
2026-01-11 14:19:56 +01:00
parent 471bc20aab
commit 884cec19ef
7 changed files with 13 additions and 8 deletions

View File

@@ -115,7 +115,12 @@ class BookmarkForm extends _$BookmarkForm {
state.bookmarkValid = true;
state.checkBookmarkLoadStatus = LoadStatus.loaded;
} else {
// URL check failed (e.g., authenticated URLs), but if URL format is valid,
// allow saving anyway since Linkding accepts these URLs
state.checkBookmarkLoadStatus = LoadStatus.error;
if (state.urlError == null) {
state.bookmarkValid = true;
}
}
ref.notifyListeners();
}