From 2dbc2a30bec2bbc86a47ca72da1cff079e0f4325 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 22 Nov 2026 18:21:21 +0200 Subject: [PATCH] Starred pages: the comment says what toggling does - a starred page clicked again is removed. It described a re-star that keeps the place and takes a new title, which the one-button toggle never does. Thanks to xet7 ! --- models/lib/starredPages.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/models/lib/starredPages.js b/models/lib/starredPages.js index 50d18f4006..9d1d69f508 100644 --- a/models/lib/starredPages.js +++ b/models/lib/starredPages.js @@ -78,9 +78,8 @@ function isPageStarred(pages, url) { // because the button is one button: the reader clicks the star to put the page // in the list and clicks it again to take it out. // -// A page that is starred again with a NEW title (the page was renamed, the -// admin changed the product name) keeps its place in the list and takes the new -// title - moving it to the end would reorder a list the reader has learned. +// So a starred page clicked again is REMOVED, whatever title it has now; a +// page starred after that goes to the end with its current title. function toggleStarredPage(pages, url, title) { const entry = pageEntry(url, title); if (!entry) return starredPagesOf(pages);