Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2 Base HREF not being considered and incorrect links result

open
nobody
None
5
2007-07-31
2007-07-31
zoltak
No

If a document that contains a base href such as <base href="http://mysite.com/test/" />

With links such as <a href="test/test-things">Things to test</a>

The makeFullQualifiedURL function does not build out the URL correctly.

Refer to modified files for fix.

I added made the main program loop lookup the base href and in the makeFullQualifiedURL it detects if the baseHref exists and builds the URL as required.

The crawler now traverses a site with base hrefs :)

Discussion

  • zoltak
    zoltak
    2007-07-31

    Contains the modified files for the base href fix

     
    Attachments