aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-02 10:00:17 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-02 10:00:17 +0100
commit53bf3d78939346db9c4d533ab16d4589503071db (patch)
tree10627211a5e12b9aacac2c80d31ba70ede6ab2aa
parent50681d5d9f887bc7653d1fac4a7014a1d6623181 (diff)
fix: fix items url links
-rw-r--r--src/frontend/tubo/items/views.cljs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/frontend/tubo/items/views.cljs b/src/frontend/tubo/items/views.cljs
index 5cc299b..ad74e71 100644
--- a/src/frontend/tubo/items/views.cljs
+++ b/src/frontend/tubo/items/views.cljs
@@ -167,9 +167,15 @@
pagination-loading? @(rf/subscribe [:show-pagination-loading])
bookmarks @(rf/subscribe [:bookmarks])
item-url #(case (:type %)
- "stream" (rfe/href :stream-page nil {:url %})
- "channel" (rfe/href :channel-page nil {:url %})
- "playlist" (rfe/href :playlist-page nil {:url %})
+ "stream" (rfe/href :stream-page
+ nil
+ {:url (:url %)})
+ "channel" (rfe/href :channel-page
+ nil
+ {:url (:url %)})
+ "playlist" (rfe/href :playlist-page
+ nil
+ {:url (:url %)})
(:url %))]
[:div.flex.flex-col.flex-auto.my-2.md:my-8
(if (empty? related-streams)