-
Notifications
You must be signed in to change notification settings - Fork 470
Querying Page by URI doest require correct URI field #3042
Copy link
Copy link
Labels
component: queryRelating to GraphQL QueriesRelating to GraphQL Querieseffort: medLess than a weekLess than a weekhas: workaroundA temporary workaround has been providedA temporary workaround has been providedimpact: highUnblocks new use cases, substantial improvement to existing feature, fixes a major bugUnblocks new use cases, substantial improvement to existing feature, fixes a major bugobject type: postRelating to the Post Object TypesRelating to the Post Object Typesscope: apiIssues related to access functions, actions, and filtersIssues related to access functions, actions, and filtersstatus: actionableReady for work to beginReady for work to begintype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Description
Metadata
Metadata
Assignees
Labels
component: queryRelating to GraphQL QueriesRelating to GraphQL Querieseffort: medLess than a weekLess than a weekhas: workaroundA temporary workaround has been providedA temporary workaround has been providedimpact: highUnblocks new use cases, substantial improvement to existing feature, fixes a major bugUnblocks new use cases, substantial improvement to existing feature, fixes a major bugobject type: postRelating to the Post Object TypesRelating to the Post Object Typesscope: apiIssues related to access functions, actions, and filtersIssues related to access functions, actions, and filtersstatus: actionableReady for work to beginReady for work to begintype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
StatusShow more project fields
✅ Done
Description
When querying for pages or posts by URI, it returns any match of the uri even if it's incomplete. It turns out to be a problem when parent/child relationships are in place.
i.e. I've got a test page which URI is /about/test/ but it can still be queried just with a fraction of the URI like bout/test/ or even just /test/
Steps to reproduce
Additional context
No response
WPGraphQL Version
1.21.0
WordPress Version
6.4.3
PHP Version
8.3.0
Additional environment details
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for WPGraphQL.