From 9bcd9931f70b1401f86be6bb6367136db89ba16a Mon Sep 17 00:00:00 2001 From: invis-z <22781620+invis-z@users.noreply.github.com> Date: Thu, 26 May 2022 01:18:17 +0800 Subject: [PATCH] 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. --- app/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/filter.py b/app/filter.py index 6151034..099d818 100644 --- a/app/filter.py +++ b/app/filter.py @@ -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