Skip to content

Commit

Permalink
Don't prefix file URLs with media/
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Aug 25, 2023
1 parent f25e2ff commit d7a7c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tested/languages/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'<a href="{the_url}" class="file-link" target="_blank">{filename}</a>'
)
Expand Down

0 comments on commit d7a7c73

Please sign in to comment.