Skip to content

Comments

BookmarkDoBuilder: allow fallback if page is not bookmarkable#2023

Merged
bschwarzent merged 1 commit intoreleases/26.1from
features/bsh/26.1/450541_bookmarkable
Feb 23, 2026
Merged

BookmarkDoBuilder: allow fallback if page is not bookmarkable#2023
bschwarzent merged 1 commit intoreleases/26.1from
features/bsh/26.1/450541_bookmarkable

Conversation

@bschwarzent
Copy link
Member

If 'persistableRequired' is true, all pages on the path should be bookmarkable. Otherwise, the bookmark creation fails. However, if 'fallbackAllowed' is true, the error can be avoided by creating a PageBookmarkDefinitionDo instead of a OutlineBookmarkDefinitionDo.

By default, all pages are considered to be bookmarkable. Custom implementations of BookmarkSupport can change that by overriding isBookmarkable().

Additionally, BookmarkSupport no longer returns the wrong types when handling errors. For example, createBookmark() should return an IBookmarkDo and not the result of an error message box. In case of a handled error, the result should be null instead. (Unhandled errors still cause the promise to be rejected.)

450541

@bschwarzent bschwarzent self-assigned this Feb 17, 2026
If 'persistableRequired' is true, all pages on the path should be
bookmarkable. Otherwise, the bookmark creation fails. However, if
'fallbackAllowed' is true, the error can be avoided by creating a
PageBookmarkDefinitionDo instead of a OutlineBookmarkDefinitionDo.

By default, all pages are considered to be bookmarkable. Custom
implementations of BookmarkSupport can change that by overriding
isBookmarkable().

Additionally, BookmarkSupport no longer returns the wrong types when
handling errors. For example, createBookmark() should return an
IBookmarkDo and not the result of an error message box. In case of a
handled error, the result should be null instead. (Unhandled errors
still cause the promise to be rejected.)

450541
@bschwarzent bschwarzent force-pushed the features/bsh/26.1/450541_bookmarkable branch from 76cb67e to 95fd187 Compare February 20, 2026 09:25
@bschwarzent bschwarzent merged commit 29ad595 into releases/26.1 Feb 23, 2026
4 checks passed
@bschwarzent bschwarzent deleted the features/bsh/26.1/450541_bookmarkable branch February 23, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant