mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-22 03:11:31 +00:00
Fix bug in readers where web browser is unable to load the ebook when running behind a reverse proxy at /audiobookshelf
This commit is contained in:
parent
4bdd76d94c
commit
a926df3aae
4 changed files with 11 additions and 11 deletions
|
|
@ -94,9 +94,9 @@ export default {
|
|||
},
|
||||
ebookUrl() {
|
||||
if (this.fileId) {
|
||||
return `/api/items/${this.libraryItemId}/ebook/${this.fileId}`
|
||||
return `/audiobookshelf/api/items/${this.libraryItemId}/ebook/${this.fileId}`
|
||||
}
|
||||
return `/api/items/${this.libraryItemId}/ebook`
|
||||
return `/audiobookshelf/api/items/${this.libraryItemId}/ebook`
|
||||
},
|
||||
themeRules() {
|
||||
const theme = this.ereaderSettings.theme
|
||||
|
|
@ -206,7 +206,7 @@ export default {
|
|||
*/
|
||||
updateProgress(payload) {
|
||||
if (!this.keepProgress) return
|
||||
this.$axios.$patch(`/api/me/progress/${this.libraryItemId}`, payload, { progress: false }).catch((error) => {
|
||||
this.$axios.$patch(`/audiobookshelf/api/me/progress/${this.libraryItemId}`, payload, { progress: false }).catch((error) => {
|
||||
console.error('EpubReader.updateProgress failed:', error)
|
||||
})
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue