Skip to content

fix: bump bundled SifterSearch to v0.6.0 (stop the double search box) - #200

Merged
lens0021 merged 1 commit into
mainfrom
fix/siftersearch-0.6.0
Jun 28, 2026
Merged

fix: bump bundled SifterSearch to v0.6.0 (stop the double search box)#200
lens0021 merged 1 commit into
mainfrom
fix/siftersearch-0.6.0

Conversation

@lens0021

Copy link
Copy Markdown
Collaborator

Bug

On the deployed docs site, every page showed two search boxes: the native one in the header plus a full PagefindUI box in the content.

Cause

wikven's static export bundles every JS module into one self-executing file. SifterSearch's results-page module (ext.sifter.results) is server-queued only on the SifterSearchResultsPage, but once it's in the shared bundle it ran on every page and its mount() unconditionally created the PagefindUI. It was also unreachable on its own page (with SifterSearchFullText: false nothing linked to it).

Fix

Bump the bundled SifterSearch from v0.5.0 → v0.6.0, which fixes this at the source:

(SifterSearch v0.6.0 was released from chaotic-ground/SifterSearch's existing release-please PR.)

Verification (local bake with the new image)

  • Installation / index: one (native) search box, no PagefindUI, wgSifterSearchOnResultsPage absent.
  • Search: native box + the full PagefindUI results widget; the search form's action is retargeted to ./Search.html with the title=Special:Search hidden input removed.

…mounting on every page

A static export bundles every JS module into one self-executing file, so
SifterSearch's results-page module (ext.sifter.results) ran on every
page and mounted a second, full PagefindUI search box everywhere, not
just on the configured SifterSearchResultsPage.

SifterSearch v0.6.0 fixes this at the source: the results widget now
guards on wgSifterSearchOnResultsPage and only mounts on the results page
(#23), and a new retarget module points the native search form at the
results page so it is actually reachable by submitting a query (#30).

Verified by baking the docs with the new image: normal pages show a
single (native) search box and no PagefindUI, while the Search page
mounts the full results widget and its form submits to Search.html.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@lens0021
lens0021 merged commit cd38aa7 into main Jun 28, 2026
20 checks passed
@lens0021
lens0021 deleted the fix/siftersearch-0.6.0 branch June 28, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant