Skip to content

feat(search): open zayit:// deep links pasted into the search bar#457

Merged
kdroidFilter merged 1 commit into
masterfrom
feat/search-bar-deeplink
Jun 6, 2026
Merged

feat(search): open zayit:// deep links pasted into the search bar#457
kdroidFilter merged 1 commit into
masterfrom
feat/search-bar-deeplink

Conversation

@kdroidFilter
Copy link
Copy Markdown
Owner

Summary

  • Pasting a zayit://book/<id>/line/<lineId> (or zayit://search/...) link into the main search bar now opens the target directly instead of running a text search.
  • submitSearch parses the query with parseZayitDeepLink; on a match it validates the book exists (getBookCore) and emits a new NavigateToDeepLink event.
  • TabsContent handles the event by replacing the current tab's destination, reusing the existing deep-link parsing already used for external links.

Test plan

  • Paste zayit://book/247/line/169673 → opens the book at the line
  • Paste zayit://search/... → opens the search
  • A normal text query still runs a search
  • A link to a non-existent book falls back to a normal search

@kdroidFilter kdroidFilter merged commit 5be8783 into master Jun 6, 2026
6 of 7 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