-
Notifications
You must be signed in to change notification settings - Fork 18
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
Unable to fetch head metadata on search strategy when search keys has more than one word #537
Comments
@nicholasio I have also noticed an issue with get_head endpoint when appending the url param with |
Thanks @lucymtc Here are a few things I found:
I'm not sure if we can rely on on Yoast to generate the meta tags for the search page. |
Alternative solution: Have the SearchStrategy manually build the yoast_seo object and yoast_html fields manually with basica meta tags. |
@nicholasio for the issue:
I found what the problem is and opened an Issue and PR in Yoast I tried to override the validate callback for the URL, the way to do this would be to register a get_head endpoint from our side as if |
Update on fix for "Searching for multiple words crashes the get_head query and thus makes the framework default to the metadata of the first post returned." has been merged into Yoast via this PR Yoast/wordpress-seo#21032 |
Opened PR #663 for: |
Looks like the PR merged will be released in Yoast 22.0. |
Describe the bug
There seem to be a few issues with the Yoast get_head endpoint that is not properly recognizing the requested page as a search page.
Steps to Reproduce
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: