From 23faa9f12778fb5ad264df7ab38667d49820127b Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Sat, 16 May 2020 19:22:56 +0530 Subject: [PATCH] fix: Remove root URI on frontend Removes appending root URI in `img src` from frontend which broke the rendering of S3 URLs in campaign templates. Closes https://github.com/knadh/listmonk/issues/101 --- frontend/src/Campaign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Campaign.js b/frontend/src/Campaign.js index cf48234..e6aa6d1 100644 --- a/frontend/src/Campaign.js +++ b/frontend/src/Campaign.js @@ -91,7 +91,7 @@ class Editor extends React.PureComponent { new Delta() .retain(range.index) .delete(range.length) - .insert({ image: this.props.config.rootURL + uri }), + .insert({ image: uri }), null ) }