From 61740bf08dea76b20bece8471fe140f5c059ce3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dav=C3=AD=C3=B0=20Steinar?= Date: Thu, 14 May 2026 17:10:18 +0200 Subject: [PATCH] Enable episode deep linking via episodeId Wire episodeId query parameter through item links and search results, and preselect/show the corresponding episode on item page load. --- client/components/cards/LazyBookCard.vue | 1 + client/components/controls/GlobalSearch.vue | 2 +- client/pages/item/_id/index.vue | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index 51f657dbc..2258c306c 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -711,6 +711,7 @@ export default { var router = this.$router || this.$nuxt.$router if (router) { if (this.collapsedSeries) router.push(`/library/${this.libraryId}/series/${this.collapsedSeries.id}`) + else if (this.recentEpisode) router.push(`/item/${this.libraryItemId}?episodeId=${this.recentEpisode.id}`) else router.push(`/item/${this.libraryItemId}`) } } diff --git a/client/components/controls/GlobalSearch.vue b/client/components/controls/GlobalSearch.vue index 6f3a819bf..c70c8ce8c 100644 --- a/client/components/controls/GlobalSearch.vue +++ b/client/components/controls/GlobalSearch.vue @@ -42,7 +42,7 @@

{{ $strings.LabelEpisodes }}