-1

I have a result from a web page that is saved as an MHT file.

The MHT file works fine overall when opened in Chrome or Edge, for example. Only the contained links do not work, because they refer to the source of the web page, and not to the MHT file itself.

The links in question all have the following structure:

<a id=3D "2-3721" class=3D "hl-0" href=3D "https://people.f4.htw-berlin.de/~weberwu/simtexter/app.html#1-1854">

This syntax makes links in the left half (#1) of the page point to targets in the right half (#2) of the page, and vice versa.

I have already tried to rewrite all corresponding links in the MHT file by deleting the absolute address:

https://people.f4.htw-berlin.de/~weberwu/simtexter/app.html

which makes the links look as in the following example:

<a id=3D "2-3721" class=3D "hl-0" href=3D "#1-1854">

However, the links still do not work.

How can I rewrite or parse the links to make them work inside the MHT file?

David.P
  • 196
  • 1
  • 9

1 Answers1

0

The problem is solved if the website is not downloaded as MHT with the built-in Chrome parser, but with the Chrome Extension SingleFile, see also here:

How to create MHTML standalone file with same page links

David.P
  • 196
  • 1
  • 9