diff --git a/src/stocktool/web/static/js/app.js b/src/stocktool/web/static/js/app.js index 1d1b894..692337b 100644 --- a/src/stocktool/web/static/js/app.js +++ b/src/stocktool/web/static/js/app.js @@ -345,6 +345,15 @@ function stockApp() { // Part found this.currentPart = data.part_info; this.currentParameters = data.parameters; + + // Fix image URLs - convert relative paths to full InvenTree URLs + if (this.currentPart.image && this.currentPart.image.startsWith('/')) { + this.currentPart.image = this.config.host + this.currentPart.image; + } + if (this.currentPart.thumbnail && this.currentPart.thumbnail.startsWith('/')) { + this.currentPart.thumbnail = this.config.host + this.currentPart.thumbnail; + } + this.log('success', `✅ Found part: ${partCode}`); // Execute operation