Recent searches


No recent searches

"Tried to show an iframe with a location that is neither absolute nor an asset" when trying to render a React app in nav_bar



Posted Feb 17, 2022

I have a React support app that has been working fine in top_bar but as soon as I moved it to nav_bar I started getting this error. Are there any other types of changes that need to be made to accommodate the location change other than updating the manifest?


0

6

6 comments

image avatar

Zach Anthony

Zendesk Product Manager

Hi Jesse,

Do you mind sharing your manifest configuration? And is this error happening after installing the app or while you are locally testing? 

0


{
"name":"",
"author":{
"name":"",
"email":"",
"url":""
},
"defaultLocale":"en",
"private":true,
"location":{
"support":{
"nav_bar":"assets/index.html"
}
},
"version":"1.0",
"frameworkVersion":"2.0"
}
It's happening while locally testing.

0


image avatar

Zach Anthony

Zendesk Product Manager

Hi Jesse,

So this looks like it's related to a bug we have identified with ZCLI. We are going to be working on resolving this in the next few weeks, however, in the interim you can try specifying the URL as a property of the location; this should resolve your issue.

e.g.

"support": {
"nav_bar": {
"url": "assets/index.html"
}
}

Hope this helps!

0


Yup that did it! Thanks. When the ZCLI bug is fixed, will I need to revert back to the previous version of manifest (not declaring "url")?

0


image avatar

Zach Anthony

Zendesk Product Manager

Hey Jesse,

When the ZCLI bug is fixed, you won't need to revert back to the previous version of the manifest as both ways of providing the url are supported.

0


image avatar

Zach Anthony

Zendesk Product Manager

Hey Jesse, just wanted to give you an update that we have released a new version of ZCLI (1.0.0-beta.16) which resolves this issue.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post