Files
gitbook/packages
Claude 378f519231 fix(search): link title matches to page top instead of section anchor
Search page results always linked to the best-scoring section's anchor
whenever a snippet was shown, so clicking a result whose page title
matched the query would drop the user to a heading partway down the
article instead of the top.

Link to the top of the page when the query is a page/title match (every
query word appears in the title) and keep the section anchor only for
genuine section-level matches. Adds a pure `isPageTitleMatch` helper with
unit tests, mirroring the per-word title matching already used for scoring
in reciprocalRankFusion.

RND-11916

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xihqNNfTuEzwsux5wzMoF
2026-07-15 00:17:44 +00:00
..
2026-02-25 11:37:48 +01:00
2025-10-15 13:30:24 +02:00
2026-07-06 12:52:44 +00:00
2026-05-19 13:24:41 +02:00
2026-07-06 12:52:44 +00:00