Search pagination not honoring APP_URL value

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