From d4b9dfcc1e27b52d50ef36c4161f2c2e48644eed Mon Sep 17 00:00:00 2001 From: Max Edell Date: Mon, 9 Oct 2023 14:54:04 -0700 Subject: [PATCH] fix: extra slash in path --- blocks/article/article.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/article/article.js b/blocks/article/article.js index d0ca075..9130299 100644 --- a/blocks/article/article.js +++ b/blocks/article/article.js @@ -423,7 +423,7 @@ async function renderContent(block, res, rerender = false) { image.src = imageURL.toString(); } else { // add /docs/ prefix if missing - const path = imageURL.pathname.startsWith('/docs/') ? imageURL.pathname : `/docs/${imageURL.pathname}`; + const path = imageURL.pathname.startsWith('/docs/') ? imageURL.pathname : `/docs${imageURL.pathname}`; image.src = `${store.docsOrigin}${path}${imageURL.search}`; }