From 4baa84c712381fd9fe4335644fc5fee250153bc5 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Wed, 22 Nov 2023 13:29:47 +1100 Subject: [PATCH] fix(devtools): link absolute fetch URLs correctly --- client/components/Source.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/components/Source.vue b/client/components/Source.vue index 66ce02de..0feafe21 100644 --- a/client/components/Source.vue +++ b/client/components/Source.vue @@ -7,6 +7,8 @@ const props = defineProps<{ source: SitemapSourceResolved, showContext?: boolean const fetchUrl = computed(() => { const url = typeof props.source.fetch === 'string' ? props.source.fetch : props.source.fetch![0] + if (url.includes('http')) + return url return joinURL(data.value?.nitroOrigin || 'localhost', url) })