diff --git a/internal/pages/home/bookmark.go b/internal/pages/home/bookmark.go index 6ce955b..50d53bd 100644 --- a/internal/pages/home/bookmark.go +++ b/internal/pages/home/bookmark.go @@ -38,7 +38,8 @@ func GenerateBookmarkTemplate(filter string) template.HTML { if len(bookmarksData.Categories) > 0 { defaultCategory := bookmarksData.Categories[0] for _, category := range bookmarksData.Categories { - tpl += renderBookmarksWithCategories(&bookmarks, &category, &defaultCategory, options.OpenBookmarkNewTab, options.EnableEncryptedLink, options.IconMode) + categoryCopy := category + tpl += renderBookmarksWithCategories(&bookmarks, &categoryCopy, &defaultCategory, options.OpenBookmarkNewTab, options.EnableEncryptedLink, options.IconMode) } } else { tpl += renderBookmarksWithoutCategories(&bookmarks, options.OpenBookmarkNewTab, options.EnableEncryptedLink, options.IconMode)