From 1d7572fed5258f92c222c7a263fe9f27c257852c Mon Sep 17 00:00:00 2001 From: Sam Lord Date: Thu, 30 Mar 2023 16:49:13 +0100 Subject: [PATCH] Data generator: Fixed the URL formatting for newsletter clicks no issue --- ghost/data-generator/lib/tables/redirects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/data-generator/lib/tables/redirects.js b/ghost/data-generator/lib/tables/redirects.js index 2a2659fd25..4c93558096 100644 --- a/ghost/data-generator/lib/tables/redirects.js +++ b/ghost/data-generator/lib/tables/redirects.js @@ -24,7 +24,7 @@ class RedirectsImporter extends TableImporter { return { id: faker.database.mongodbObjectId(), from: `/r/${faker.datatype.hexadecimal({length: 32, prefix: '', case: 'lower'})}`, - to: `https://${faker.internet.url()}/${faker.helpers.slugify(`${faker.word.adjective()} ${faker.word.noun()}`).toLowerCase()}`, + to: `${faker.internet.url()}/${faker.helpers.slugify(`${faker.word.adjective()} ${faker.word.noun()}`).toLowerCase()}`, post_id: this.model.id, created_at: this.model.published_at, updated_at: this.model.published_at