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

Canonical and og:url are not set #157

Closed
galaxy79 opened this issue Jul 22, 2023 · 4 comments · Fixed by #194
Closed

Canonical and og:url are not set #157

galaxy79 opened this issue Jul 22, 2023 · 4 comments · Fixed by #194

Comments

@galaxy79
Copy link

I was trying to test the alpine theme and saw that canonical and og:url properties are missing in the generated html file.

image
Copy link
Contributor

Atinux commented Jul 25, 2023

You can define them in your nuxt.config.ts @galaxy79 for og:url and og:type using https://nuxt.com/docs/api/configuration/nuxt-config#head

I guess for the canonical we could add it in our AppLayout @bdrtsky

@galaxy79
Copy link
Author

Thanks .. I did it.. since it was released as a theme and these are important parameters for SEO, I thought it is better to be raise the issue

@galaxy79
Copy link
Author

@Atinux i defined it in nuxt.config.ts and it works for the index page. For each blog page, it still has the canonical as by index page url and how can i dynamically update it for each page ?

@deepinder10
Copy link
Contributor

@Atinux I ran into the same issue as @galaxy79 . I have raised a PR to address it.
#194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants