jhhoward / MicroWeb

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

Microweb is trying to fetch anchor links "#" as entirely new objects #23

Closed mbbrutman closed 2 months ago

mbbrutman commented 11 months ago

A URL of the form http://server/path/object#anchor means "jump to anchor within object". If object (a page) is already loaded then it's just a local jump to an anchor tag within the page.

Microweb is interpreting these types of links as entirely new pages to fetch, which is going to fail because the #anchor part is being passed along as the name of the object to fetch. If a fetch is required then the #anchor part should be stripped out of the request to the server. After the object is fetched the screen can then be scrolled to #anchor.

If you're not parsing the anchor links in the page then just stripping the #anchor before sending to the web server should be sufficient; the user should be able to figure out how to scroll by themselves.

jhhoward commented 2 months ago

This is now supported properly in version 2.0

mbbrutman commented 2 months ago

Thank you sir!