bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: --convert-links should not convert # hrefs


From: Tim Rühsen
Subject: Re: --convert-links should not convert # hrefs
Date: Sat, 26 Mar 2022 19:50:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2

On 26.03.22 11:20, Christopher Gait-Smith wrote:
When using the --convert-links in wGET, sites will often become broken if they contain:

<a href="#example"></a>

Will get converted to:

<a href="index.html#example"></a>


I believe that hrefs that just have a #whatever should not get converted to file.html#whatever

I can see how this breaks. Without a file name, wget assumes `index.html`.
But this file a) doesn't need to exist on the server or b) the default file is something else (e.g. index.php) but index.html also exists on the server.

Do you have one or two examples of pages or domains where this happens ?

Regards, Tim

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]