{
  "sample_id": "sidebar-link-404",
  "title": "带筛选和小节定位的侧栏链接点开是 404",
  "source_kind": "issue_backed_merged_github_pr",
  "source": {
    "number": 4352,
    "merge": "3edab29e42a9d786c7f79054b402fb3b7c6ba531",
    "base": "0a7c69ce22a4ca7b5082f9bfa5f8a61df7409859",
    "title": "Fix sidebar links containing a query string or hash",
    "merged_at": "2026-11-05T15:00:26Z",
    "issue": 4286,
    "repository": "withastro/starlight",
    "pull_request": "https://github.com/withastro/starlight/pull/4352",
    "issue_url": "https://github.com/withastro/starlight/issues/4286",
    "windows_materialized_internal_links": [
      "README.md"
    ],
    "changed_files": [
      {
        "path": ".changeset/smooth-donkeys-begin.md",
        "status": "added"
      },
      {
        "path": "packages/starlight/__tests__/basics/format-path.test.ts",
        "status": "modified"
      },
      {
        "path": "packages/starlight/src/utils/createPathFormatter.ts",
        "status": "modified"
      }
    ]
  },
  "transcript": "这站导出的是独立的 HTML 文件。我点左边这条带筛选的链接，你看，打开是四零四。它应该直接到对应的文档小节，同时保留原来的筛选条件。旁边的普通链接也得照常。",
  "recording": "recording.mp4",
  "audio_is_synthetic": true,
  "interaction_is_reenacted": true,
  "browser": "158.0.8127.37",
  "tts": {
    "model": "qwen-audio-3.1-tts-flash",
    "voice": "longanhuan_v3.1",
    "sample_rate_hz": 24000
  },
  "duration_sec": 16.22,
  "grounding": [
    {
      "cue": "左边这条",
      "has_dom_target": true,
      "target": "Release guide · filtered view",
      "keyframe": "keyframe-01.jpg",
      "cue_start_ms": 4010,
      "cue_end_ms": 4810,
      "frame_ms": 4410,
      "pointer": [
        139,
        149
      ],
      "region": {
        "x": 33,
        "y": 136.734375,
        "width": 235,
        "height": 27.96875
      },
      "viewport": {
        "width": 1180,
        "height": 770
      },
      "page": "/"
    },
    {
      "cue": "四零四",
      "has_dom_target": true,
      "target": "404 page heading",
      "keyframe": "keyframe-02.jpg",
      "cue_start_ms": 7450,
      "cue_end_ms": 7930,
      "frame_ms": 7690,
      "pointer": [
        98,
        215
      ],
      "region": {
        "x": 50,
        "y": 181,
        "width": 107.578125,
        "height": 75.59375
      },
      "viewport": {
        "width": 1180,
        "height": 770
      },
      "page": "/release-guide?view=summary#preflight.html"
    }
  ],
  "track_b_gt": [
    {
      "step": 1,
      "target": "文件式构建中带 query 与 fragment 的 Starlight 自定义侧栏链接",
      "instruction": "点击后返回有效文档，筛选参数和小节锚点均保留，普通侧栏链接仍能打开。"
    }
  ],
  "visible_before_after_checks": [
    "filtered_link_opens_document",
    "query_is_preserved",
    "correct_section_anchor",
    "ordinary_link_still_works"
  ],
  "reproduction_fixture": "reproduction-site/ (authored content and issue setup, original theme code)"
}
