Skip to content

fix: traverse alias_pointer in getPageContentBlockIds#698

Open
albertodainotti wants to merge 1 commit intoNotionX:masterfrom
InetIntel:fix-alias-pointer-traversal
Open

fix: traverse alias_pointer in getPageContentBlockIds#698
albertodainotti wants to merge 1 commit intoNotionX:masterfrom
InetIntel:fix-alias-pointer-traversal

Conversation

@albertodainotti
Copy link
Contributor

Problem

getPageContentBlockIds traverses transclusion_reference_pointer to resolve referenced blocks, but it does not traverse alias_pointer. When a Notion page contains alias (synced) blocks, their content is not included in the page content block IDs, causing those blocks to not render.

Fix

Added traversal of format.alias_pointer.id alongside the existing transclusion_reference_pointer traversal. When an alias pointer is found, we call addContentBlocks(aliasId) to recursively include the aliased block's content.

Files Changed

  • packages/notion-utils/src/get-page-content-block-ids.ts — Added 5 lines to handle alias_pointer

Add alias_pointer traversal alongside existing transclusion_reference_pointer
traversal, ensuring pages referenced via alias blocks are included in the
set of block IDs fetched by fetchMissingBlocks.
@vercel
Copy link

vercel bot commented Mar 11, 2026

@albertodainotti is attempting to deploy a commit to the Saasify Team on Vercel.

A member of the Team first needs to authorize it.

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