Skip to content

Commit 0c92add

Browse files
committed
Fix issue with Google complaining about protocol-relative urls for images
1 parent 80475ee commit 0c92add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/user/src/routes/sitemap.xml/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export async function GET({ fetch }) {
6969
return ['descriptionEn', 'descriptionEs'].map((_, i) => {
7070
return `
7171
<image:image>
72-
<image:loc>${image.imageUrl}</image:loc>
72+
<image:loc>https:${image.imageUrl}</image:loc>
7373
${(i === 0 && image.descriptionEn) || (i === 1 && image.descriptionEs) ?
7474
`<image:caption>${i === 0 ? image.descriptionEn : image.descriptionEs}</image:caption>`
7575
: ''}

0 commit comments

Comments
 (0)