0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

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
This commit is contained in:
Kevin Ansfield 2021-08-24 16:52:13 +01:00
parent 8309904fcc
commit dff28b3ca6

View file

@ -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('/')