From be3c5361e01208225ec2e5c0d8ba3937e6f65cb8 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Mon, 22 Mar 2021 15:53:31 +0100 Subject: [PATCH] fix: typo in url --- src/posts/posts.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/posts.controller.ts b/src/posts/posts.controller.ts index a5241f25b..dcc8ebf9f 100644 --- a/src/posts/posts.controller.ts +++ b/src/posts/posts.controller.ts @@ -53,7 +53,7 @@ export class PostsController { } // Handle image display. Rewrite image URL to fit ghost infra issue. if (post.feature_image && !this.configService.isLocalConf()) { - post.feature_image = `https:// + ${this.configService.config.host}/blog/content${ + post.feature_image = `https://${this.configService.config.host}/blog/content${ post.feature_image.split('/content')[1] }`; } -- GitLab