Skip to content

Shareable search url - #156

Merged
krispya merged 3 commits into
mainfrom
worktree-shareable-search-url
Aug 6, 2026
Merged

Shareable search url#156
krispya merged 3 commits into
mainfrom
worktree-shareable-search-url

Conversation

@krispya

@krispya krispya commented Aug 6, 2026

Copy link
Copy Markdown
Member

No description provided.

@krispya krispya changed the title Sshareable search url Shareable search url Aug 6, 2026
krispya and others added 2 commits August 6, 2026 09:34
The search text and library filter now round-trip through ?q= and
?library=: typing a search or picking a library puts it in the address
bar, and opening such a link pre-applies the filter (opening the rail
and search field if needed).

Written with history.replaceState rather than the router -- a
navigation per keystroke is pointless work and Safari rate-limits the
History API, hence the small debounce. The params are re-applied after
client navigations so the URL keeps reflecting the active filter when
moving between examples, and a shared link deliberately does not
overwrite the visitor's stored rail-collapse preference.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@krispya
krispya force-pushed the worktree-shareable-search-url branch from e297848 to 1039a6b Compare August 6, 2026 13:39
@krispya
krispya merged commit fb08c78 into main Aug 6, 2026
2 checks passed
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