Fixed public preview url for email only posts

refs 148caaf06d
refs https://github.com/TryGhost/Team/issues/990

- The email only post's route has been changed from `/email/:slug` to `/email/:uuid`
This commit is contained in:
Naz 2021-08-19 12:50:43 +04:00
parent c1ccb91a4e
commit 8d7cf2a79e
2 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,7 @@
@stopEnterKeyDownPropagation={{true}} />
</div>
{{#if this.post.isSent}}
<GhUrlPreview @prefix="email" @slug={{this.slugValue}} @tagName="p" @classNames="description" />
<GhUrlPreview @prefix="email" @slug={{this.uuidValue}} @tagName="p" @classNames="description" />
{{else}}
<GhUrlPreview @slug={{this.slugValue}} @tagName="p" @classNames="description" />
{{/if}}

View File

@ -35,6 +35,7 @@ export default Component.extend({
twitterDescriptionScratch: alias('post.twitterDescriptionScratch'),
twitterTitleScratch: alias('post.twitterTitleScratch'),
slugValue: boundOneWay('post.slug'),
uuidValue: boundOneWay('post.uuid'),
seoDescription: or('metaDescriptionScratch', 'customExcerptScratch', 'post.excerpt'),
facebookDescription: or('ogDescriptionScratch', 'customExcerptScratch', 'seoDescription', 'post.excerpt', 'settings.description', ''),