File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export const useContentHead = (
88
88
head . meta . push ( {
89
89
property : 'og:image' ,
90
90
// @ts -ignore - We expect `head.image` from Nuxt configurations...
91
- content : host && ! hasProtocol ( image ) ? new URL ( joinURL ( config . app . baseURL , image ) , url ) . href : image
91
+ content : host && ! hasProtocol ( image ) ? new URL ( joinURL ( config . app . baseURL , image ) , host ) . href : image
92
92
} )
93
93
}
94
94
@@ -112,7 +112,7 @@ export const useContentHead = (
112
112
const imageURL = isAbsoluteURL ? image . src : joinURL ( config . app . baseURL , image . src ?? '/' )
113
113
head . meta . push ( {
114
114
property : 'og:image' ,
115
- content : host && ! isAbsoluteURL ? new URL ( imageURL , url ) . href : imageURL
115
+ content : host && ! isAbsoluteURL ? new URL ( imageURL , host ) . href : imageURL
116
116
} )
117
117
} else if ( image [ key ] ) {
118
118
head . meta . push ( {
You can’t perform that action at this time.
0 commit comments