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:
parent
8309904fcc
commit
dff28b3ca6
1 changed files with 0 additions and 8 deletions
|
@ -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('/')
|
||||
|
|
Loading…
Add table
Reference in a new issue