# Unable to retrieve the ChannelInfo in an Spa++ site

**URL:** https://community.bloomreach.com/t/unable-to-retrieve-the-channelinfo-in-an-spa-site/370
**Category:** Experience Manager (PaaS/OnPrem)
**Created:** [September 6, 2018, 7:50am UTC](https://community.bloomreach.com/t/unable-to-retrieve-the-channelinfo-in-an-spa-site/370 "2018-09-06T07:50:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Matthijs](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/matthijs/32/700_2.png) [@Matthijs](https://community.bloomreach.com/u/Matthijs)
#### Post date: [September 6, 2018, 7:50am UTC](https://community.bloomreach.com/t/unable-to-retrieve-the-channelinfo-in-an-spa-site/370/1 "2018-09-06T07:50:53Z")

</div>

Hi,

Im trying to retrieve the ChannelInfo in a doBeforeRender method for an Spa++ site in order to output the channel settings, but Im unable to retrieve this via the normal route:

```
Mount mount = rxc.getResolvedMount().getMount();
    WebsiteInfo info = mount.getChannelInfo();

```

Im able to retrieve the channelInfo just fine if Im on a normal website (remove the SPA pipeline config and the pagemodelapi from the mount config)

Any idea how to correctly retrieve the channelInfo in the SPA++ site?

Kind regards,  
Matthijs

---

<div class="post-metadata">

### Author: ![Matthijs](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/matthijs/32/700_2.png) [@Matthijs](https://community.bloomreach.com/u/Matthijs)
#### Post date: [September 6, 2018, 8:30am UTC](https://community.bloomreach.com/t/unable-to-retrieve-the-channelinfo-in-an-spa-site/370/2 "2018-09-06T08:30:35Z")

</div>

Oh I found it.

I can just retrieve the parent which is the normal mount and not the resourceApi mount.

---

<div class="post-metadata">

### Author: ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)
#### Post date: [September 6, 2018, 8:32am UTC](https://community.bloomreach.com/t/unable-to-retrieve-the-channelinfo-in-an-spa-site/370/3 "2018-09-06T08:32:20Z")

</div>

I’m not exactly an expert on this new feature, so grain of salt. First, make sure you have configured it correctly [1]. Second, I believe the SPA mount is a child of the real mount, so try the parent.

[1] [https://www.onehippo.org/library/concepts/spa-plus/configuration.html](https://www.onehippo.org/library/concepts/spa-plus/configuration.html)

edit: and of course you found it while I was typing my reply.

---

<div class="post-metadata">

### Author: ![ard.schrijvers](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ard.schrijvers/32/309_2.png) [@ard.schrijvers](https://community.bloomreach.com/u/ard.schrijvers)
#### Post date: [September 6, 2018, 10:51am UTC](https://community.bloomreach.com/t/unable-to-retrieve-the-channelinfo-in-an-spa-site/370/4 "2018-09-06T10:51:15Z")

</div>

Hey Mathijs,

can you true

Mount useMount = rxc.getResolvedMount().getMount();  
if (!useMount.isExplicit()) {  
useMount = useMount.getParent();  
}

The reason is that your request mount might be the auto-appended  
‘pagemodelapi’ mount. I am not fully sure, but this is from the top of  
my head.

Let me know

Regards Ard

---

<div class="post-metadata">

### Author: ![Matthijs](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/matthijs/32/700_2.png) [@Matthijs](https://community.bloomreach.com/u/Matthijs)
#### Post date: [September 6, 2018, 10:53am UTC](https://community.bloomreach.com/t/unable-to-retrieve-the-channelinfo-in-an-spa-site/370/5 "2018-09-06T10:53:02Z")

</div>

Hi Ard,

You are right its the appended pagemodelapi mount. I didnt notice it before. The getParent() works. The check is a nice addition.
