ReviewOS

also looking at this

stacks/bunpress

fix: preserve deployment paths in local search results

#91
Merged chris wants to merge codex/search-base-path into main
5 files +81 -23
9 days ago

Local search on a site mounted at /docs linked results to the origin root, so selecting a valid result opened a 404. Search records now receive the same normalized deployment prefix as rendered pages, after locale translation and fallback selection. Root deployments, section anchors and real nested docs directories retain their correct routes.

Move deployment-prefix resolution into the existing site URL module and preserve the renderer's public export. Add regression coverage and document the behavior.

Validation: 61 tests passed across search, base-path and localization suites; lint and typecheck passed. Rebuilt Stacks Drone docs and selected an actual Open Farming search result in the browser, which opened /docs/open-farming successfully. The Drone application retains a version-specific 0.2.22 dependency patch pending a release.

5 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.