Skip to content

nodeByUri does not return ContentType for Posts Page. #1687

@jonshipman

Description

@jonshipman

Performing a query on nodeByUri for the page_for_posts uri returns the Page type instead of the ContentType type.

With v1.1.0 the below query works correctly:

query {
  nodeByUri(uri: "/blog") {
    ... on Page {
      id
      isPostsPage
      title
    }
    ... on ContentType {
      id
      name
      contentNodes(first: 3) {
        nodes {
          id
        }
      }
    }
  }
}

It will return 3 posts under contentNodes. When run on v1.1.2 it returns the Page (isPostsPage: true, title: "Blog") instead of the contentNodes.

Metadata

Metadata

Assignees

Labels

object type: postRelating to the Post Object Typestype: bugIssue that causes incorrect or unexpected behavior

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions