danfragoso / thdwb

🌭 The hotdog web browser and browser engine 🌭
MIT License
1.13k stars 58 forks source link

Fix loading of documents with relative paths #8

Closed farhaven closed 4 years ago

farhaven commented 4 years ago

HTML anchors with an href that does not start with a /, i.e. that have a relative path, need to be prefixed with / to properly join them to the base host.

An example can be seen on https://unobtanium.de. The links are relative to the root directory. Without this patch, the browser crashes when trying to load them.

danfragoso commented 4 years ago

Hi @farhaven thanks for taking the time to solve this issue!