[UI] Search page: support URL parameters for deep linking

← All Specs

[UI] Search page: support URL parameters for deep linking

ID: ef9d02c5-863 Priority: 88 Type: one_shot Status: open

Goal

[UI] Search page: support URL parameters for deep linking

Acceptance Criteria

☐ Concrete deliverables created
☐ Work log updated with timestamped entry

Work Log

  • 2026-04-16 — Added URL parameter support for deep linking to search page (site/search.html):
- ?q=term — already worked (pre-fill + auto-search); preserved
- ?type=hypothesis — restores the type filter dropdown from URL
- ?score=0.5 — restores the min-score filter from URL
- ?date=30 — restores the date-range filter from URL
- All params composable: /search?q=FOXP1&type=hypothesis&score=0.7
- Extracted updateUrl() helper that syncs all filter state to URL via history.replaceState
- Filter change handlers now call updateUrl() even when no query is active
- No server-side changes needed (purely client-side)

Tasks using this spec (1)
[UI] Search page: support URL parameters for deep linking
UI done P88
File: ef9d02c5_863_spec.md
Modified: 2026-05-01 20:13
Size: 1.0 KB