mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 08:05:19 +00:00
32ef4f6aed
Search results that match a page title now link to the top of the page instead of a mid-page section anchor. Section-level matches keep their heading anchor. Adds a pure `isPageTitleMatch` helper (mirroring the substring title notion in reciprocalRankFusion) and uses it in SearchPageResultItem to choose the link target. Recovers the approach from the previously-closed draft PR #4434 for RND-11916. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B1rctbY7mEtGP1ZwVowxoE