Closed ariel-integrity closed 3 months ago
Hey @ariel-integrity ,
I'm unable to replicate this. Perhaps you can provide more specific information about your setup + replication steps?
canonicalUrl
query MyQuery {
contentNodes {
nodes {
... on Post {
seo {
... on RankMathPostObjectSeo{
canonicalUrl
}
}
}
}
}
}
Hey @ariel-integrity, It's been quiet for a few weeks, so I'm going to assume you've figured this out and close out this ticket.
If you're still experiencing this issue, please respond with some replication steps, and I'll reopen this and take a look.
What problem does this address?
Pulling canonicalUrl and getting the default value (when not set by WP admin user) sets developer up for simple implementation.
What is your proposed solution?
Fallback to page URL when canonicalUrl field is null, make available in WPGraphQL queries
What alternatives have you considered?
Setting up canonical to be page URL by default within next, have it overridden if the field pulled by WPGraphQL Rank Math plugin is not null.
Additional Context
No response