Skip to content

Commit

Permalink
fix(devtools): link absolute fetch URLs correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Nov 22, 2023
1 parent 28162c0 commit 4baa84c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/components/Source.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 4baa84c

Please sign in to comment.