Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

yoast fields are not being passed to archive pages. props.pageContext #52

Open
CalebBarnes opened this issue Mar 14, 2019 · 2 comments
Open
Labels
bug Something isn't working

Comments

@CalebBarnes
Copy link

I noticed this when react helmet wasn't updating the page title for archive pages.

@TylerBarnes
Copy link
Owner

archive context:

{latestBuild: 1552517219, wpUrl: "https://skana.barework.com", archive: true, id: 158, post_type: "news", …}
archive: true
humanPageNumber: 1
id: 158
latestBuild: 1552517219
limit: 9
nextPagePath: "/latest-news/2"
numberOfPages: 2
pageNumber: 0
post_type: "news"
previousPagePath: ""
skip: 0
wpUrl: "https://skana.barework.com"
__proto__: Object

regular context:

{latestBuild: 1552517219, wpUrl: "https://skana.barework.com", id: 15, pagePath: "/about/", buildUrl: "https://skana.netlify.com/", …}
buildUrl: "https://skana.netlify.com/"
id: 15
latestBuild: 1552517219
nextPost: {ID: 106, pathname: "/product/test-product/", post_type: "product", post_title: "Product Name", template_slug: "single/product", …}
pagePath: "/about/"
previousPost: {ID: 11, pathname: "/", post_type: "page", post_title: "Home", template_slug: "single/page", …}
wpUrl: "https://skana.barework.com"
yoast:
canonical_url: ""
content_score: "60"
og_description: ""
og_image: {publicURL: "/static/picsum-1-d9e9f123b031afaf6ea77a43d3c8f5fe.jpg"}
og_image_id: 88
og_title: ""
seo_metadesc: ""
seo_title: "About - Skana Forest Products"
__proto__: Object
__proto__: Object

@TylerBarnes TylerBarnes added the bug Something isn't working label Mar 14, 2019
@TylerBarnes
Copy link
Owner

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants