Skip to content

Conversation

@mledwards
Copy link

Adding in the protocol (https://) for when embedding, so the URL isn't treated as a relative path on the website you're embedding it on

Before, if your website was https://mywebsite.com and the chatbot was on mychatbot.com, because the https:// is missing, the embedded URL would be treated as a relative path, so the iframe would try and load https://mywebsite.com/mychatbot.com/embed...

Adding in the protocol (https://) for when embedding, so the URL isn't treated as a relative path on the website you're embedding it on.
@mledwards mledwards changed the title Update page.js Add location.protocol to embedded URL Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant