We're having an issue using the page targeting that comes with the Chat message widget - we've enabled chat to load on a certain subset of pages on our website, as shown in the screenshot below:
This works fine when loading the URL directly. However, our application is built using React, and uses React Router, and thus the HTML History API, to navigate between site pages. When navigating to the selected URL from another page on the site, the Hubspot snippet doesn't seem to correctly detect that the URL now matches the criteria for showing the chat widget, and it doesn't load.
Is this a limitation of the current Hubspot implementation? It would be great if the widget was aware of the History API and knew to load when a user navigated to the selected URL.