Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useContentHead should add og:image including base url. #2373

Open
madebyfabian opened this issue Oct 14, 2023 · 0 comments
Open

useContentHead should add og:image including base url. #2373

madebyfabian opened this issue Oct 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@madebyfabian
Copy link
Sponsor

Is your feature request related to a problem? Please describe

Currently, useContentHead just adds the relative path to the image as the og:image. This is invalid though. See

Describe the solution you'd like

Either use some globally defined option defined in the nuxt.config.ts (preferred one), or add it as an option to define the base url when using useContentHead.

Describe alternatives you've considered

useContentHead(page.value)

useSeoMeta({
  ogImage: page.value.image?.src ? joinURL(runtimeConfig.public.siteUrl, page.value.image.src) : undefined,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant