jhhoward / MicroWeb

DOS Web browser for 8088 class machines
GNU General Public License v2.0
436 stars 31 forks source link

Something is wrong with relative url parsing (MW 0.53) #24

Closed bocke closed 2 months ago

bocke commented 11 months ago

I'm currently trying out the latest release of MW and I noticed it has some problem with parsing relative urls.

If I'm viewing document called index.htm which contains a relative link:

<a href="link1.htm">Link 1</a>

MW will parse the link as

FILE://INDEX.HTM/LINK1.HTM

instead of:

FILE://LINK1.HTM

I can get MW to open the right document by using absolute urls:

<a href="file://link1.htm">Link 1</a>

I haven't yet looked into the code, so I don't know if this would be a simple fix or something more tedious (as it probably touches URL parsing code).

Edit:

MW was only tested offline in a DOSBox-x session. MW and all the HTM files were in the root directory of the C: drive.

jhhoward commented 2 months ago

Fixed in version 2.0