From d7a7c73ea094fc9c869389d82780ec7a1526adaa Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Fri, 25 Aug 2023 13:27:18 +0200 Subject: [PATCH] Don't prefix file URLs with media/ --- tested/languages/generation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tested/languages/generation.py b/tested/languages/generation.py index 0d825165..db9cea4e 100644 --- a/tested/languages/generation.py +++ b/tested/languages/generation.py @@ -189,7 +189,7 @@ def get_readable_input( def replace_link(match: Match) -> str: filename = match.group() the_file = url_map[filename] - the_url = urllib.parse.quote("media/" + the_file.url) + the_url = urllib.parse.quote(the_file.url) the_replacement = ( f'{filename}' )