From 45e9f9f3f5d96ef34f2ad8c878b2b630a1d3440b Mon Sep 17 00:00:00 2001 From: sophiamersmann Date: Mon, 9 Oct 2023 12:05:17 +0000 Subject: [PATCH] fix(grapher): make title clickable when iframe embedded --- packages/@ourworldindata/grapher/src/core/Grapher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@ourworldindata/grapher/src/core/Grapher.tsx b/packages/@ourworldindata/grapher/src/core/Grapher.tsx index 8684c0fd4ef..462d9796445 100644 --- a/packages/@ourworldindata/grapher/src/core/Grapher.tsx +++ b/packages/@ourworldindata/grapher/src/core/Grapher.tsx @@ -2668,7 +2668,7 @@ export class Grapher } @computed get isOnCanonicalUrl(): boolean { - if (!this.canonicalUrl) return false + if (!this.canonicalUrl || this.isInIFrame) return false return ( getWindowUrl().pathname === Url.fromURL(this.canonicalUrl).pathname )