Skip to content

Guard internallinks against blocks without a page - #214

Merged
johndgiese merged 1 commit into
mainfrom
fix-internallinks-pageless-block
Jul 28, 2026
Merged

Guard internallinks against blocks without a page#214
johndgiese merged 1 commit into
mainfrom
fix-internallinks-pageless-block

Conversation

@johndgiese

Copy link
Copy Markdown
Contributor

Third internallinks hardening fix, hit during a full re-export of innolitics.github.io articles (crashed mid-run at article ~127): rich text arrays can be wrapped for blocks that have no page (e.g. property-value contexts), and the plugin's constructor guard only checked block is None before dereferencing block.page.notion_id. Now defers via UseNextClass — only same-page links inside a page's block tree are resolvable anyway. Regression test included.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EwuTg4uAA3UCEeiNLqtpdC

Rich text arrays can be wrapped in contexts whose block has no page
(e.g. property values), crashing the plugin on block.page.notion_id and
killing the whole export. Defer to the next class instead; only
same-page links inside a page's block tree are resolvable anyway.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EwuTg4uAA3UCEeiNLqtpdC
@johndgiese
johndgiese merged commit 158188e into main Jul 28, 2026
4 checks passed
@johndgiese
johndgiese deleted the fix-internallinks-pageless-block branch July 28, 2026 05:27
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