Custom Inline Embed Chat - Knowledge Base Links close chat


Hey there!


I am setting up a custom Hubspot Conversations widget using the "inlineEmbedSelector" setting to target my custom container. Everything has been working great until we enabled Knowledge Base search for the chat.


I search for an article, click it, it opens the article in a new tab. When I navigate back to my web app, the chat has disappeared. After inspecting the DOM, I am noticing that all of the chat content that was previously inside of a div with the class "widget-app-container" has been removed, and I cannot seem to get the chat to re-open via the API.


My ideal solution would be that the chat doesn't close at all when a user clicks a knowledge base link (so they are able to maintain their chat context), but if that is not an option, then I would like to know how to observe the correct events to correctly handle closing and/or re-opening the chat in my web app while persisting that users active conversations.


Any guidance would be greatly appreciated!

2 Replies 2
Community Manager

@himanshurauthan ,

Any chance you have dealt with something similar?



Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
Recognized Expert | Platinum Partner

Hello @dennisedson, thank you for tagging me in.


Hello @EMoore1,


Can you please share the link to the webpage where this chatbot is embedded?



Digital Marketing & Inbound Expert In Growth Hacking Technology