[PR #5132] Fix bug in readers where web browser is unable to load the ebook when… #4438

Open
opened 2026-04-25 00:19:45 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/5132
Author: @kareemalgalaly
Created: 3/19/2026
Status: 🔄 Open

Base: masterHead: master


📝 Commits (1)

  • a926df3 Fix bug in readers where web browser is unable to load the ebook when running behind a reverse proxy at /audiobookshelf

📊 Changes

4 files changed (+11 additions, -11 deletions)

View changed files

📝 client/components/readers/ComicReader.vue (+3 -3)
📝 client/components/readers/EpubReader.vue (+3 -3)
📝 client/components/readers/MobiReader.vue (+2 -2)
📝 client/components/readers/PdfReader.vue (+3 -3)

📄 Description

… running behind a reverse proxy at /audiobookshelf

Brief summary

Fixes issue wherein the browser client is unable to display ebooks when running audiobookshelf behind a reverse proxy at /audiobookshelf

Which issue is fixed?

Fixes #5131

In-depth Description

The bug is simply that the client reaches for the ebooks at /api/... instead of /audiobookshelf/api which is expected as of version 2.18

I am not certain (seeing it had been previously fixed at https://github.com/advplyr/audiobookshelf/issues/3865) that this is the ideal solution.

How have you tested this?

I spun up a development docker container with my changes and connected to it both directly and through an nginx reverse proxy at /audiobookshelf

Screenshots

Before
Screenshot From 2026-03-18 21-19-44

After
Screenshot From 2026-03-18 22-30-04


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/5132 **Author:** [@kareemalgalaly](https://github.com/kareemalgalaly) **Created:** 3/19/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`a926df3`](https://github.com/advplyr/audiobookshelf/commit/a926df3aaee4d7a8e572d9344c35437bdd6f4aad) Fix bug in readers where web browser is unable to load the ebook when running behind a reverse proxy at /audiobookshelf ### 📊 Changes **4 files changed** (+11 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `client/components/readers/ComicReader.vue` (+3 -3) 📝 `client/components/readers/EpubReader.vue` (+3 -3) 📝 `client/components/readers/MobiReader.vue` (+2 -2) 📝 `client/components/readers/PdfReader.vue` (+3 -3) </details> ### 📄 Description … running behind a reverse proxy at /audiobookshelf <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary Fixes issue wherein the browser client is unable to display ebooks when running audiobookshelf behind a reverse proxy at /audiobookshelf ## Which issue is fixed? Fixes #5131 ## In-depth Description The bug is simply that the client reaches for the ebooks at /api/... instead of /audiobookshelf/api which is expected as of version 2.18 I am not certain (seeing it had been previously fixed at https://github.com/advplyr/audiobookshelf/issues/3865) that this is the ideal solution. ## How have you tested this? I spun up a development docker container with my changes and connected to it both directly and through an nginx reverse proxy at /audiobookshelf ## Screenshots Before <img width="1052" height="932" alt="Screenshot From 2026-03-18 21-19-44" src="https://github.com/user-attachments/assets/830a5ced-4c95-40e3-b2a9-e113e76a7ff3" /> After <img width="1052" height="379" alt="Screenshot From 2026-03-18 22-30-04" src="https://github.com/user-attachments/assets/e7a498e0-6dda-49a4-857d-8184c744bc41" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:19:45 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4438