diff --git a/app/static/js/item.js b/app/static/js/item.js index 24d32a1..6a02483 100644 --- a/app/static/js/item.js +++ b/app/static/js/item.js @@ -114,6 +114,11 @@ async function loadData(id, args) { ${layerData.title} `) data.layers[layer].forEach(annotation => { + annotation.value = annotation.value.replace( + /src="\//g, `src="${pandora.url.origin}/` + ).replace( + /href="\//g, `href="${pandora.url.origin}/` + ) html.push(`
${annotation.value}