From 332e54533a77562e1e3c8735a7cf7f1621d52aad Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Wed, 3 Mar 2021 14:01:44 +0100 Subject: [PATCH] Updated fallback site icon for navigation header --- ghost/admin/app/components/gh-nav-menu/main.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ghost/admin/app/components/gh-nav-menu/main.js b/ghost/admin/app/components/gh-nav-menu/main.js index 8de446af62..42fb4144cf 100644 --- a/ghost/admin/app/components/gh-nav-menu/main.js +++ b/ghost/admin/app/components/gh-nav-menu/main.js @@ -94,15 +94,8 @@ export default Component.extend(ShortcutsMixin, { this.set('iconStyle', htmlSafe(`background-image: url(${icon})`)); return; } - - let subdirRegExp = new RegExp(`^${this.get('ghostPaths.subdir')}`); - let blogIcon = icon ? icon : 'favicon.ico'; - let iconUrl; - - blogIcon = blogIcon.replace(subdirRegExp, ''); - - iconUrl = this.get('ghostPaths.url').join(this.get('config.blogUrl'), blogIcon).replace(/\/$/, ''); - iconUrl += `?t=${(new Date()).valueOf()}`; + + let iconUrl = 'https://static.ghost.org/v3.0.0/images/ghost-squircle.png'; this.set('iconStyle', htmlSafe(`background-image: url(${iconUrl})`)); }