From 398c7353fab796afcf2c2d44ad237c0fa78acfd6 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Sat, 18 Apr 2026 23:10:00 +0200 Subject: [PATCH] fix: route watchlist clicks to anime --- internal/templates/watchlist.templ | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/templates/watchlist.templ b/internal/templates/watchlist.templ index ec39b49..dd3ad2a 100644 --- a/internal/templates/watchlist.templ +++ b/internal/templates/watchlist.templ @@ -121,12 +121,7 @@ templ ifHasProgress(entry database.GetUserWatchListRow) { } func watchURL(entry database.GetUserWatchListRow) string { - episode := 1 - if entry.CurrentEpisode.Valid && entry.CurrentEpisode.Int64 > 0 { - episode = int(entry.CurrentEpisode.Int64) - } - - return fmt.Sprintf("/watch/%d/%d", entry.AnimeID, episode) + return fmt.Sprintf("/anime/%d", entry.AnimeID) } func formatProgressTime(seconds float64) string {