Came across your module, and I was wondering if users of your module might be able to benefit if path_redirect is installed and a broken internal link is found.

Something like this in linkchecker.admin.inc:

    // Show link to redirect this broken internal link.
    if (module_exists('path_redirect') && linkchecker_is_internal_url($link->url)) {
      $links[] = l(t('Create redirection'), 'admin/build/path-redirect/add', array('query' => array('path' => $link->url))));
    }

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new1.34 KB

Patch that actually works with current path_redirect 6.x-1.x-dev.

hass’s picture

Dave, I dither if this makes sense... shouldn't people not better repair their broken links? The redirection could already exists if I read your patch correctly...

hass’s picture

Status: Needs review » Fixed

Committed it untested.

Status: Fixed » Closed (fixed)

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