Skip to content

Commit

Permalink
fix: stored heatmap URL in toolbar (#25751)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Oct 23, 2024
1 parent 12350ff commit cda9179
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/src/toolbar/stats/currentPageLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ export const currentPageLogic = kea<currentPageLogicType>([
})),

afterMount(({ actions, values, cache }) => {
// an earlier bug means that some folk have a bad URL saved
// this auto-fixes things for those folks
// to save us having to explain the fix individually
// can be removed by end of Nov 2024
if (values.href && values.href.includes('#__posthog=')) {
actions.setHref(withoutPostHogInit(values.href))
}

cache.interval = window.setInterval(() => {
if (window.location.href !== values.href) {
actions.setHref(window.location.href)
Expand Down

0 comments on commit cda9179

Please sign in to comment.