From d456ec2786deb241cd4ed08b6e1f23cc4179fec2 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 2 Oct 2022 10:07:24 -0500 Subject: [PATCH] Fix:Local covers path for localhost --- client/components/modals/item/tabs/Cover.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/modals/item/tabs/Cover.vue b/client/components/modals/item/tabs/Cover.vue index 10d3de45..e3bf910f 100644 --- a/client/components/modals/item/tabs/Cover.vue +++ b/client/components/modals/item/tabs/Cover.vue @@ -164,7 +164,7 @@ export default { .filter((f) => f.fileType === 'image') .map((file) => { var _file = { ...file } - _file.localPath = `/s/item/${this.libraryItemId}/${this.$encodeUriPath(file.metadata.relPath).replace(/^\//, '')}` + _file.localPath = `${process.env.serverUrl}/s/item/${this.libraryItemId}/${this.$encodeUriPath(file.metadata.relPath).replace(/^\//, '')}` return _file }) }