Tag count wrong - includes deleted pages? #4507

Closed
opened 2026-02-05 09:02:22 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @hjertaker on GitHub (Mar 12, 2024).

Describe the Bug

There seem to be something wrong with the pages count on the Tags page. It includes pages that are already deleted, for example on one tag the pages count is 2, but when i click the tag to see the pages, there are 0 returned. This are a tag previously used, but the pages are where it was used is now deleted.

Steps to Reproduce

  1. Create testpage, add a new tag.
  2. Delete the testpage
  3. Go to the "View tags" page, the tag created for the testpage should be listed as used on one page.
  4. Click on the pages to seach the pages including the tag - none is listed.

Expected Behaviour

The tag pages count should not include deleted pages.
Alternativly it should specify that the pages are deleted.

Screenshots or Additional Context

bookstack_tag_missing_example

Browser Details

Chrome on Windows 10

Exact BookStack Version

v24.02

Originally created by @hjertaker on GitHub (Mar 12, 2024). ### Describe the Bug There seem to be something wrong with the pages count on the Tags page. It includes pages that are already deleted, for example on one tag the pages count is 2, but when i click the tag to see the pages, there are 0 returned. This are a tag previously used, but the pages are where it was used is now deleted. ### Steps to Reproduce 1. Create testpage, add a new tag. 2. Delete the testpage 3. Go to the "View tags" page, the tag created for the testpage should be listed as used on one page. 4. Click on the pages to seach the pages including the tag - none is listed. ### Expected Behaviour The tag pages count should not include deleted pages. Alternativly it should specify that the pages are deleted. ### Screenshots or Additional Context ![bookstack_tag_missing_example](https://github.com/BookStackApp/BookStack/assets/6689370/73513faa-735c-474e-86a6-351aca356cb3) ### Browser Details Chrome on Windows 10 ### Exact BookStack Version v24.02
OVERLORD added the 🐛 Bug🏭 Back-End labels 2026-02-05 09:02:22 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Apr 15, 2024):

Thanks for raising this @hjertaker, I could confirm this and have addressed it in f05ec4cc26, which will be part of the next feature release.

@ssddanbrown commented on GitHub (Apr 15, 2024): Thanks for raising this @hjertaker, I could confirm this and have addressed it in f05ec4cc26c3381a3bc8ea49f371b89bcf38140b, which will be part of the next feature release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4507