mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-07-09 03:04:13 -04:00
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.
This commit is contained in:
parent
fb600d6fc8
commit
9bcd9931f7
@ -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…
x
Reference in New Issue
Block a user