[bug #67487] The -k (--convert-links) option fails to convert anchors referencing the same page, thus failing offline rendering

Eo Koochu <[email protected]> Tue, 9 Sep 2025 11:18:02 -0400 (EDT)
Newsgroups gmane.comp.web.wget.general
Message-ID <[email protected]>
--8323329-2029397539-1757431082=:1266611
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/bugs/?67487>=0A=0A                 Summa=
ry: The -k (--convert-links) option fails to convert=0Aanchors referencing =
the same page, thus failing offline rendering=0A                   Group: G=
NU Wget=0A               Submitter: eokoochu=0A               Submitted: Tu=
e 09 Sep 2025 03:17:48 PM GMT=0A                Category: Program Logic=0A =
               Severity: 3 - Normal=0A                Priority: 5 - Normal=
=0A                  Status: None=0A                 Privacy: Public=0A    =
         Assigned to: None=0A         Originator Name:=0A        Originator=
 Email:=0A             Open/Closed: Open=0A         Discussion Lock: Any=0A=
                 Release: trunk=0A        Operating System: GNU/Linux=0A   =
      Reproducibility: Every Time=0A           Fixed Release: None=0A      =
   Planned Release: None=0A              Regression: None=0A           Work=
 Required: None=0A          Patch Included: None=0A=0A=0A    ______________=
_________________________________________=0A=0AFollow-up Comments:=0A=0A=0A=
-------------------------------------------------------=0ADate: Tue 09 Sep =
2025 03:17:48 PM GMT By: Eo Koochu <eokoochu>=0Aversion: 1.21.3-1+deb12u1=
=0A=0ARan this:=0A=0A$ wget -P "$dir" -E -H -k -K -p=0A'https://www.sheldon=
brown.com/tire-sizing.html'=0A=0AThen when offline the resulting HTML was r=
endered in Firefox. It rendered fine=0Abut there is an anchor link that sho=
uld jump to another location on the same=0Apage:=0A=0Ahttps://sheldonbrown.=
com/tire-sizing.html#iso=0A=0AInstead of jumping to the =E2=80=9Ciso=E2=80=
=9D anchor, it tries to access the Internet=0Awhich of course fails. That l=
ink should have been converted to a local link=0Athat functions without Int=
ernet.=0A=0A=0A=0A=0A=0A=0A=0A=0A    ______________________________________=
_________________=0A=0AReply to this item at:=0A=0A  <https://savannah.gnu.=
org/bugs/?67487>=0A=0A_______________________________________________=0AMes=
sage sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-2029397539-1757431082=:1266611
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaMBFKgAKCRCqLAuaBUf3
Tg9HAQCe8ww0dew9Pphbb8qtWVQslXAwguhq/C429FTxwzNbhwEAoxXX26gVmFus
3L4j5jNa+1+IqLYCGye6Z7meFC421gs=
=s/Au
-----END PGP SIGNATURE-----

--8323329-2029397539-1757431082=:1266611--