diff --git a/core/frontend/helpers/ghost_head.js b/core/frontend/helpers/ghost_head.js index 5c6c3d80f5..7dddc8897e 100644 --- a/core/frontend/helpers/ghost_head.js +++ b/core/frontend/helpers/ghost_head.js @@ -62,7 +62,9 @@ function getSearchHelper(frontendKey) { return ''; } - let helper = ``; + const adminUrl = urlUtils.getAdminUrl() || urlUtils.getSiteUrl(); + + let helper = ``; return helper; } diff --git a/test/unit/frontend/helpers/ghost_head.test.js b/test/unit/frontend/helpers/ghost_head.test.js index d80819709a..fe9e6df3d3 100644 --- a/test/unit/frontend/helpers/ghost_head.test.js +++ b/test/unit/frontend/helpers/ghost_head.test.js @@ -1750,7 +1750,7 @@ describe('{{ghost_head}} helper', function () { })).then(function (rendered) { should.exist(rendered); rendered.string.should.containEql('