Search pagination not honoring APP_URL value #5544

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

Originally created by @arnauos on GitHub (Dec 16, 2025).

Describe the Bug

Hi, I just noticed that at least on version 25.11.6, when using the search feature, the pagination links do not include the APP_URL an thus, the links are incorrect

Steps to Reproduce

  1. Have a Bookstack instance with a APP_URL set to anything that is not the root domain (ie: https://mydomain.io/bookstack)
  2. Search anything that have several pages of results (url points to https://mydomain.io/bookstack/search?term=xxxxx)
  3. Click any of the pagination links
  4. Error not found as the link points to https://mydomain.io/search?term=xxxxx&page=X

Expected Behaviour

Pagination links should point to the correct APP_URL, in the example it should be https://mydomain.io/bookstack/search?term=xxxxx&page=X instead of https://mydomain.io/search?term=xxxxx&page=X

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

25.11.6

Originally created by @arnauos on GitHub (Dec 16, 2025). ### Describe the Bug Hi, I just noticed that at least on version 25.11.6, when using the search feature, the pagination links do not include the APP_URL an thus, the links are incorrect ### Steps to Reproduce 1. Have a Bookstack instance with a APP_URL set to anything that is not the root domain (ie: https://mydomain.io/bookstack) 2. Search anything that have several pages of results (url points to https://mydomain.io/bookstack/search?term=xxxxx) 3. Click any of the pagination links 4. Error not found as the link points to https://mydomain.io/search?term=xxxxx&page=X ### Expected Behaviour Pagination links should point to the correct APP_URL, in the example it should be https://mydomain.io/bookstack/search?term=xxxxx&page=X instead of https://mydomain.io/search?term=xxxxx&page=X ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version 25.11.6
OVERLORD added the 🐛 Bug label 2026-02-05 10:09:47 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 19, 2025):

Thanks @arnauos for reporting, I've now addressed this in 0b48361780, and added a test to cover the scenario to prevent regression.

These changes will be part of the next feature release.

@ssddanbrown commented on GitHub (Dec 19, 2025): Thanks @arnauos for reporting, I've now addressed this in 0b4836178050b5c0e0b3f58a3935a3c46bfb8976, and added a test to cover the scenario to prevent regression. These changes 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#5544