From 298e3da745949b15201ebf0f9d5fcfd8ddb8a12a Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Fri, 17 Mar 2023 10:27:23 +0100 Subject: [PATCH] Fixed comment CTA button link refs https://github.com/TryGhost/Team/issues/2672 - Use #ghost-comments instead of #ghost-comments-root - Fixed snapshots --- .../admin/__snapshots__/email-previews.test.js.snap | 10 +++++----- .../__snapshots__/batch-sending.test.js.snap | 8 ++++---- ghost/email-service/lib/email-renderer.js | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ghost/core/test/e2e-api/admin/__snapshots__/email-previews.test.js.snap b/ghost/core/test/e2e-api/admin/__snapshots__/email-previews.test.js.snap index f54ef339cf..b0b0214ed0 100644 --- a/ghost/core/test/e2e-api/admin/__snapshots__/email-previews.test.js.snap +++ b/ghost/core/test/e2e-api/admin/__snapshots__/email-previews.test.js.snap @@ -411,7 +411,7 @@ table.body figcaption a { - + Post with email-only card @@ -942,7 +942,7 @@ table.body figcaption a { - + HTML Ipsum @@ -1524,7 +1524,7 @@ table.body figcaption a { - + Post with email-only card @@ -2427,7 +2427,7 @@ table.body figcaption a { - + Post with email-only card @@ -3361,7 +3361,7 @@ table.body figcaption a { - + Post with email-only card diff --git a/ghost/core/test/integration/services/email-service/__snapshots__/batch-sending.test.js.snap b/ghost/core/test/integration/services/email-service/__snapshots__/batch-sending.test.js.snap index 041b9e5663..421802e5ac 100644 --- a/ghost/core/test/integration/services/email-service/__snapshots__/batch-sending.test.js.snap +++ b/ghost/core/test/integration/services/email-service/__snapshots__/batch-sending.test.js.snap @@ -309,7 +309,7 @@ table.body figcaption a { - + A random test post @@ -1275,7 +1275,7 @@ table.body figcaption a { - + This is a test post title @@ -1772,7 +1772,7 @@ table.body figcaption a { - + A random test post @@ -2271,7 +2271,7 @@ table.body figcaption a { - + A random test post diff --git a/ghost/email-service/lib/email-renderer.js b/ghost/email-service/lib/email-renderer.js index c50692eacc..47e53d42f3 100644 --- a/ghost/email-service/lib/email-renderer.js +++ b/ghost/email-service/lib/email-renderer.js @@ -588,7 +588,7 @@ class EmailRenderer { ).href.replace('--uuid--', '%%{uuid}%%'); const commentUrl = new URL(postUrl); - commentUrl.hash = '#ghost-comments-root'; + commentUrl.hash = '#ghost-comments'; const hasEmailOnlyFlag = post.related('posts_meta')?.get('email_only') ?? false;