GitHub
07/13/2026, 4:08 PM/reference/cloud/api/resources/accounts/), while in-app (SPA) navigation uses the slashless form (/reference/cloud/api/resources/accounts). React Router resolves relative link clicks against the current location, so on first load only a sibling link such as profiles#set-the-working-account-for-a-profile wrongly resolved to .../accounts/profiles#... instead of .../profiles#.... Clicking the same link after navigating in from another page worked correctly.
This swizzles @theme/Root to strip the trailing slash from the runtime location on load, so first-load navigation behaves identically to SPA navigation. It does not change what Netlify serves as canonical (no SEO/canonical impact) and requires no per-link edits or Netlify configuration changes.
Checklist
• I have read the contribution guide
Was generative AI tooling used to co-author this PR?
• Yes (please specify the tool below)
Generated-by: Claude Code following the agentic coding guidelines
Related Issues
• #10157
Summary by Sourcery
Bug Fixes:
• Fix incorrect resolution of sibling relative links on first page load caused by Netlify trailing-slash URLs in the docs site.
meltano/meltanoGitHub
07/13/2026, 4:08 PMGitHub
07/13/2026, 4:26 PM