From 0a2530c1cca8c0e3095467469fb569e5288feed9 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 30 Jun 2020 15:07:35 +0100 Subject: [PATCH] Fixed "View post" rather than "View page" in save notifications no issue - the post/page conditional was looking at the old `post.page` property rather than the `post.displayName` that was added when posts and pages became separate models --- ghost/admin/app/controllers/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/controllers/editor.js b/ghost/admin/app/controllers/editor.js index 6d075bf3b3..670831b310 100644 --- a/ghost/admin/app/controllers/editor.js +++ b/ghost/admin/app/controllers/editor.js @@ -812,7 +812,7 @@ export default Controller.extend({ let actions, type, path; if (status === 'published' || status === 'scheduled') { - type = this.get('post.page') ? 'Page' : 'Post'; + type = this.get('post.displayName') === 'page' ? 'Page' : 'Post'; path = this.get('post.url'); actions = `View ${type}`; } else {