Skip to content

useYoastHTML - some fields don't update when navigating between pages #699

Description

@johnwatkins0

Describe the bug

While this is an issue on my project, I have also verified that it is occurring on another project using this framework.

When passing useYoastHtml into the Headless app component, the page metadata within the document head seems to be correct, but when navigating around the site via internal links, many of the fields don't update. The title component updates, but from what I can see, other fields don't.

Steps to Reproduce

  1. Navigate to a page on a site using the useYoastHTML option and open the document head in the Elements tab of your browser dev tools.
  2. Click an internal link on the page.
  3. Notice that the title updates but nothing else in the head.
  4. Completely refresh the page and see that the head does have the expected content.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions