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?
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
Comment #1
hass commentedI 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.
Comment #2
hass commentedI 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.
Comment #3
hass commentedAfter 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.Comment #4
hass commentedFixed in DEV.
The D5 version may not work correctly with i18n module, but this is untested.