@fern-api/fdr-sdk 1.2.62-7fed4b0733 → 1.2.64-0fa778bbab

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2201,9 +2201,19 @@ function buildTabbedOrSidebar(ctx, scopeSegs, tabsPresent, scopePrefix) {
2201
2201
  // (matching v2) while still starting with the version slug, keeping
2202
2202
  // the subtree inside the default-version prune window (see
2203
2203
  // {@link structuralNodeSlug}).
2204
- // Changelog sidebar children use the product/version prefix — v2
2205
- // roots changelogs at the scope level, not under the tab.
2206
- child: buildSidebarRootWithVariants(ctx, tabSegs, tabSlug, scopePrefix)
2204
+ //
2205
+ // Changelog sidebar children root at the enclosing scope prefix
2206
+ // (product/version) for an implicit/default tab, which does not
2207
+ // contribute a URL segment — its entries live at the scope level
2208
+ // (e.g. `home/changelog`). But a REAL navigable tab (`tab_type ===
2209
+ // "tab"`) DOES contribute a segment, and its changelog's entries
2210
+ // live under the tab slug (e.g. `docs/release-notes/...`). Rooting
2211
+ // such a changelog at the bare scope prefix drops the tab segment,
2212
+ // so the changelog node lands at `release-notes` while its entries
2213
+ // and the requested route are `docs/release-notes` — `findNode`
2214
+ // then misses and the page 404s. Root it at the tab slug so the
2215
+ // node matches its entries.
2216
+ child: buildSidebarRootWithVariants(ctx, tabSegs, tabSlug, tabType === "tab" ? tabSlug : scopePrefix)
2207
2217
  };
2208
2218
  });
2209
2219
  const first = scopeSegs[0];