From ac80569c311fff6c0e295eff0fdff37246dc5cc4 Mon Sep 17 00:00:00 2001 From: John O'Mahoney Date: Tue, 7 Jul 2015 18:45:13 +0100 Subject: [PATCH] Adds meta referrer tag to the head of ghost pages closes #5522 - Added meta tag - Added meta tag to tests --- core/server/helpers/ghost_head.js | 1 + core/test/unit/server_helpers/ghost_head_spec.js | 1 + 2 files changed, 2 insertions(+) diff --git a/core/server/helpers/ghost_head.js b/core/server/helpers/ghost_head.js index c01a78dae8..43b59914b8 100644 --- a/core/server/helpers/ghost_head.js +++ b/core/server/helpers/ghost_head.js @@ -290,6 +290,7 @@ ghost_head = function (options) { // head is our main array that holds our meta data head.push(''); + head.push(''); // Generate context driven pagination urls if (self.pagination) { diff --git a/core/test/unit/server_helpers/ghost_head_spec.js b/core/test/unit/server_helpers/ghost_head_spec.js index 54d77b7385..81fc09fd1b 100644 --- a/core/test/unit/server_helpers/ghost_head_spec.js +++ b/core/test/unit/server_helpers/ghost_head_spec.js @@ -76,6 +76,7 @@ describe('{{ghost_head}} helper', function () { ).then(function (rendered) { should.exist(rendered); rendered.string.should.match(//); + rendered.string.should.match(//); rendered.string.should.match(//); rendered.string.should.match(//); rendered.string.should.match(//);