Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Open URL in same tab and not new window #984
I have added this as a planning item for customizability, we are planning some big works over there
referenced this issue
Jun 14, 2018
I have been able to solve it by keeping the conversationID in a localstorage when it is a new conversation.
@Snekha-Shivakumar I detail it step by step
This is the one we will use to see if it is a new connection or we must retrieve the messages for that conversation.
The first thing you should do is check if there is any cookie or localstorage with that conversartionID
In case of not existing, you create the botchat object and with the following function and the conversationID that is generated, you create the localstorage
If it exists, you must create the botchat object with the conversationID that you had saved in the localstorage. This is what you are going to do is retrieve the chat messages for that ID, so when you change the tab you will have them.
With this conversationID you must make a request as explained in the following link, and you will receive the necessary parameters to create the botchat object