From dff28b3ca6d1c4ff2be948c7cd73c2674d10ba84 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 24 Aug 2021 16:52:13 +0100 Subject: [PATCH] Removed "Link to this post" option from email-cta suggested URLs refs https://github.com/TryGhost/Team/issues/1007 - we don't know the URL of a post until after it's published so we were using the preview URL instead as that will always redirect to the current URL - however, it's not clear in the UI that is how the preview URL works so we're removing it to avoid any confusion --- .../addon/components/koenig-card-email-cta.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-email-cta.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-email-cta.js index 26bfe0fd5d..a9271a7385 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-email-cta.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-email-cta.js @@ -52,16 +52,8 @@ export default class KoenigCardEmailCtaComponent extends Component { } get suggestedUrls() { - const {post} = this.args.options; const urls = []; - if (post?.uuid) { - urls.push({ - name: `Link to this post`, - url: this.config.getSiteUrl(`/p/${post.uuid}/`) - }); - } - urls.push(...[{ name: `Link to ${this.config.get('blogTitle')}`, url: this.config.getSiteUrl('/')