Replace leading slash for image links (#762)

The leading slash was previously removed without noticing it was part of a
string replacement in #734. This caused the href of "View Image" contain a
leading "/" which is wrong.
pull/773/head
invis-z 2 years ago committed by GitHub
parent fb600d6fc8
commit 9bcd9931f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -533,7 +533,7 @@ class Filter:
continue
img_url = urlparse.unquote(urls[0].replace(
f'{Endpoint.imgres}?imgurl=', ''))
f'/{Endpoint.imgres}?imgurl=', ''))
try:
# Try to strip out only the necessary part of the web page link

Loading…
Cancel
Save