diff --git a/pages/index.vue b/pages/index.vue index 1a1100e..447e352 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -829,6 +829,12 @@ export default { // show images as images if (typeof valueText === 'string' && (field.type === 'image' || valueText.match(/^http.*\.(jpg|jpeg|png|gif)$/)) && valueText) { + // relative urls + if (valueText.startsWith('/') && row.url) { + const url = new URL(row.url); + valueText = `${url.origin}/${valueText}`; + } + valueText = `error loading image`; }