mhevyk
08/19/2025, 3:08 PMLiveboardEmbed component, using its liveboardId (stored in the URL).
Navigation works fine with our custom Back button, but the browser’s back button breaks because ThoughtSpot’s navigation pollutes the browser history.
After debugging (using onALL to capture all events), I found that the culprit is the ROUTE_CHANGE event. It fires whenever the iframe internally updates the iframe path, which pushes new entries into the parent browser history.
### Key observations:
- Liveboards without tabs don’t cause this issue (because ROUTE_CHANGE event is not triggered).
- With tabs:
- If no activeTabId is provided as react prop initially, ThoughtSpot auto-redirects to the first tab → updates URL → fires ROUTE_CHANGE event.
- Manual tab switches also add entries to history (it works fine).
- Setting activeTabId upfront prevents the initial redirect, but you can only get tab IDs after the liveboard renders (liveboardEmbed.trigger(HostEvent.GetTabs)), which creates a chicken-and-egg problem.
To sum up, the internal redirect to the default tab inside the iframe is polluting browser history, and I can’t intercept or prevent it.
Is there any way to handle or work around this issue?Answer Overflow
08/19/2025, 3:08 PMshikharts_67242
08/20/2025, 10:48 PMjustinmathew_tsdev
08/21/2025, 6:54 AMmhevyk
08/21/2025, 7:53 AMjustinmathew_tsdev
08/25/2025, 11:32 AMsubbu_80775
08/28/2025, 8:59 PMmhevyk
08/29/2025, 5:23 AM