[Bug]: Missing subpath in ebook url #2508

Closed
opened 2026-04-25 00:07:51 +02:00 by adam · 2 comments
Owner

Originally created by @baal000 on GitHub (Jan 20, 2025).

What happened?

If I read an ebook in the browser it loads the ebook with the wrong url into the browser:
http://192.168.178.78:13378/api/items/16ae1df2-f091-4bc4-be32-5b52dcc33ea5/ebook instead of http://192.168.178.78:13378/audiobookshelf/api/items/16ae1df2-f091-4bc4-be32-5b52dcc33ea5/ebook

This leads to issues if you are using reverse proxies like nginx as the url for the ebook will not be available then.

What did you expect to happen?

It uses http://192.168.178.78:13378/audiobookshelf/api/items/16ae1df2-f091-4bc4-be32-5b52dcc33ea5/ebook to load the ebook into the browser

Steps to reproduce the issue

  1. open browser to audiobookshelf
  2. read ebook and check network traffic

Audiobookshelf version

v2.18.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Firefox

Logs


Additional Notes

No response

Originally created by @baal000 on GitHub (Jan 20, 2025). ### What happened? If I read an ebook in the browser it loads the ebook with the wrong url into the browser: http://192.168.178.78:13378/api/items/16ae1df2-f091-4bc4-be32-5b52dcc33ea5/ebook instead of http://192.168.178.78:13378/audiobookshelf/api/items/16ae1df2-f091-4bc4-be32-5b52dcc33ea5/ebook This leads to issues if you are using reverse proxies like nginx as the url for the ebook will not be available then. ### What did you expect to happen? It uses http://192.168.178.78:13378/audiobookshelf/api/items/16ae1df2-f091-4bc4-be32-5b52dcc33ea5/ebook to load the ebook into the browser ### Steps to reproduce the issue 1. open browser to audiobookshelf 2. read ebook and check network traffic ### Audiobookshelf version v2.18.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Firefox ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:07:51 +02:00
adam closed this issue 2026-04-25 00:07:51 +02:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2025):

Fixed in v2.18.1.

@github-actions[bot] commented on GitHub (Jan 20, 2025): Fixed in [v2.18.1](https://github.com/advplyr/audiobookshelf/releases/tag/v2.18.1).
Author
Owner

@nickpascucci commented on GitHub (Jan 21, 2025):

Nice, thanks for the quick fix!

@nickpascucci commented on GitHub (Jan 21, 2025): Nice, thanks for the quick fix!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2508