Fix crawling relative links

This fixes the buggy behavior where relative links are evaluated in the path context of the most recent visited page rather than the path context of the page containing the link.