"convert-links" option destroys files whenever there is a link to the homepage on the page
I've setup a very simple test site. Now, when I run:
wget2 --recursive --convert-links "https://wgetbug.planwerk6.de"
I get destroyed code in the downloaded "index.html":
<!DOCTYPE html> <html> <body> <a href="https://wgetbug.planwerk6.de/index.html"><https://wgetbug.planwerk6.de/img src="home.png" /></a> </body> </html>
As you can see, the img tag is destroyed, because an absolute URL is inserted before it at a seemingly random position. If the HTML page is even longer, you somehow find URLs randomly sprinkled all over the downloaded page.
If you need any more information on this issue, please let me know. Please bear with me - it's my first wget bug report.