diff --git a/ghost/admin/app/controllers/whatsnew.js b/ghost/admin/app/controllers/whatsnew.js index 087c904533..7527fc4027 100644 --- a/ghost/admin/app/controllers/whatsnew.js +++ b/ghost/admin/app/controllers/whatsnew.js @@ -13,6 +13,12 @@ export default class WhatsNewController extends Controller { return date.getFullYear(); } + get linkToGitHubReleases() { + // Don't link to GitHub Releases if the version contains the + // pre-release identifier + return !this.config.get('version').includes('-pre.'); + } + get showSystemInfo() { const isPro = !!this.config.get('hostSettings')?.siteId; diff --git a/ghost/admin/app/templates/whatsnew.hbs b/ghost/admin/app/templates/whatsnew.hbs index 862142ff74..18f9d2e73e 100644 --- a/ghost/admin/app/templates/whatsnew.hbs +++ b/ghost/admin/app/templates/whatsnew.hbs @@ -50,7 +50,11 @@ {{/if}}