I have a bunch of relative links in my nodes. Linkchecker shows these as broken links. like: www.mydomain.commypage.html or www.mydomain.com../mypage.html

any suggestions?

Comments

hass’s picture

Title: Relative links handling » Relative links extracted incorrectly
Category: support » feature
Priority: Normal » Minor

I would suggest to fix the links... or use pathfilter module or pathologic module or at least - disable internal link checks.

I move this to a feature request, but I'm not yet sure how to solve and don't plan to work on it. If someone likes to jump in and provide a patch I will be happy to review to the code.

hass’s picture

I have added a regex that stops the extraction of relative URLs from content. See http://drupal.org/cvs?commit=236288

This does not solve this issue, but the relative links are not extracted anymore and therefore no longer reported as broken links. Relative links support could be added in future if someone comes up with a patch.

hass’s picture

After more thinking I've seen it haven't really been fully solved. !^[/?#]! was partly a no-brainer and need to become !^[/]! and the regex !^[?#]! need to be handled by the relative links patch that needs to be developed here.

hass’s picture

Version: 6.x-2.1 » 6.x-2.x-dev
Priority: Minor » Normal
Status: Active » Fixed

Fixed in DEV.

The D5 version may not work correctly with i18n module, but this is untested.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.