If you initialize the Prismatic embedded SDK with a URL that has a trailing slash (i.e. https://app.ap-southeast-2.prismatic.io/ vs https://app.ap-southeast-2.prismatic.io), an iframe is built with double-slashes (i.e. https://app.ap-southeast-2.prismatic.io//integration-marketplace?embed=....). The double-slashes result in a 404.
Rather than using string concatenation for iframe src property, let's use url-join, which handles trailing slashes for you.
If you initialize the Prismatic embedded SDK with a URL that has a trailing slash (i.e.
https://app.ap-southeast-2.prismatic.io/
vshttps://app.ap-southeast-2.prismatic.io
), aniframe
is built with double-slashes (i.e.https://app.ap-southeast-2.prismatic.io//integration-marketplace?embed=....
). The double-slashes result in a 404.Rather than using string concatenation for iframe
src
property, let's useurl-join
, which handles trailing slashes for you.