---
title: "Comment by Sandeep Panda on \"Chrome Extension + Hashnode API\" | Hashnode"
description: "This is awesome! Just one minor change. Use the following query to get a post&#39;s (sub)domain correctly: query { storiesFeed ( type :FEATURED) { title , slug"
url: "https://hashnode.com/posts/chrome-extension-hashnode-api/5fe4592bddcb940a6d28d7a5/comment/5fe45fd6e950fd1601d95637"
---

[Discussion](https://hashnode.com/posts/chrome-extension-hashnode-api/5fe4592bddcb940a6d28d7a5)

Comment [Chrome Extension + Hashnode API](https://hashnode.com/posts/chrome-extension-hashnode-api/5fe4592bddcb940a6d28d7a5)

[Sandeep Panda](https://hashnode.com/@sandeep)

[Dec 24, 2020](https://hashnode.com/posts/chrome-extension-hashnode-api/5fe4592bddcb940a6d28d7a5/comment/5fe45fd6e950fd1601d95637)

This is awesome! Just one minor change. Use the following query to get a post's (sub)domain correctly:

```
query {
  storiesFeed(type:FEATURED) {
    title,
    slug,
    author {
      username,
      blogHandle,
      publicationDomain
    }
  }
}
```

Right now the posts always open on the blog's subdomain. You should first check if `publicationDomain` exists and fall back to `blogHandle` if it doesn't.

[Piyush Sinha](https://hashnode.com/@sinhapiyush)

[Dec 24, 2020](https://hashnode.com/posts/chrome-extension-hashnode-api/5fe4592bddcb940a6d28d7a5/comment/5fe45fd6e950fd1601d95637#reply-5fe46737e950fd1601d956ed)

Thank you so much! & yes I should have first checked for the publication domain. I will make the needed change asap.
