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

Rest API get_head shows incorrect information for front page #18055

Closed
henrikkensen opened this issue Feb 10, 2022 · 5 comments · Fixed by #19872
Closed

Rest API get_head shows incorrect information for front page #18055

henrikkensen opened this issue Feb 10, 2022 · 5 comments · Fixed by #19872

Comments

@henrikkensen
Copy link

When using a page as frontapage, the information in yoast/v1/get_head shows incorrect information.
This bug is visible even on yoast.com.

According to https://yoast.com/wp-json/yoast/v1/get_head?url=https://yoast.com/ the og:title should be "Yoast", but frontend HTML shows "SEO for everyone".

Used versions

  • WordPress version: 5.8 & 5.9
  • Yoast SEO version: 17 & 18
@lvegerano
Copy link

lvegerano commented Mar 15, 2022

This is also happening on our website. 👍🏾 @henrikkensen did you find a workaround?

@henrikkensen
Copy link
Author

@lvegerano Sorry, no.

@Djennez Any news on this issue?
Currently it is impossible to change title for front page when using headless Wordpress.

@henrikkensen
Copy link
Author

@Djennez Any updates regarding this?

@Djennez
Copy link
Member

Djennez commented Dec 7, 2022

@henrikkensen I am no longer involved in the issue triaging of our plugins. Pinging @mmikhan to put it on his radar.

@monbauza
Copy link

monbauza commented Feb 1, 2023

Still reproducible in Yoast SEO 20.0.

Meta tags in yoast.com frontend
title: "SEO for everyone • Yoast"
description: "Yoast helps you with your website's search engine optimization, with our internationally loved software and our online SEO courses."

REST API response:
title: "Yoast • SEO for everyone"
description: "SEO for everyone"

In the REST API response, it looks like the title is set to the Site title and Tagline (defined under Settings > General) and the description is set to the Tagline.

image

image

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

Successfully merging a pull request may close this issue.

7 participants