From 5503f06e316cc89205277058094f945b2a600c54 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 3 Jan 2023 11:09:44 +0100 Subject: [PATCH] Rewrite URLs of images in generator descriptions to honor the static_url --- scripts/boxesserver | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/boxesserver b/scripts/boxesserver index 179341d..8382931 100755 --- a/scripts/boxesserver +++ b/scripts/boxesserver @@ -290,8 +290,9 @@ class BServer: no_img_msg = _('There is no image yet. Please donate an image of your project on GitHub!') if box.description: - result.append(markdown.markdown(_(box.description), - extensions=["extra"])) + result.append( + markdown.markdown(_(box.description), extensions=["extra"]) + .replace('src="static/', f'src="{static_url}/')) result.append(f'''