From 1c85d454b9b82b4849948d2a2c4eeb72e235a0bc Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 26 Mar 2022 20:11:39 +0000 Subject: [PATCH] :bug: Fixes local image path on sub-page (#570) --- src/components/LinkItems/ItemIcon.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/LinkItems/ItemIcon.vue b/src/components/LinkItems/ItemIcon.vue index 0cfa487236..65b1bafa65 100644 --- a/src/components/LinkItems/ItemIcon.vue +++ b/src/components/LinkItems/ItemIcon.vue @@ -45,11 +45,11 @@ export default { return this.$store.getters.appConfig; }, /* Determines the type of icon */ - iconType: function iconType() { + iconType() { return this.determineImageType(this.icon); }, /* Gets the icon path, dependent on icon type */ - iconPath: function iconPath() { + iconPath() { if (this.broken) return this.getFallbackIcon(); return this.getIconPath(this.icon, this.url); }, @@ -176,7 +176,7 @@ export default { }, /* Fetches the path of local images, from Docker container */ getLocalImagePath(img) { - return `${iconCdns.localPath}/${img}`; + return `/${iconCdns.localPath}/${img}`; }, /* Formats the URL for fetching the generative icons */ getGenerativeIcon(url, cdn) {