Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add location.protocol to embedded URL #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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