mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
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:
parent
c1ccb91a4e
commit
8d7cf2a79e
@ -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}}
|
||||
|
@ -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', ''),
|
||||
|
Loading…
Reference in New Issue
Block a user