Yesterday, I found a broken URL in the Drupal source, so wrote a script (attached) to investigate how widespread this issue is. It turns out the one I found is the only real incidence, hahahaha.

grep -RnI http:// * | php -f test.php

Anyway, the broken link is includes/theme.inc:11 - http://drupal.org/node/253 which used to point to the Drupal Handbook. Perhaps http://drupal.org/theme-guide is a better link anyway?

Comments

dave reid’s picture

Version: 6.4 » 7.x-dev
Status: Active » Needs review
StatusFileSize
new587 bytes

Good catch! Patch applies for 7.x, 6.x and 5.x. Ready for review.

lyricnz’s picture

Version: 7.x-dev » 6.4
StatusFileSize
new405 bytes
new414 bytes

Thanks for the patch, but the link actually refers to a Drupal 6 theming page. Maybe we should also change the link-text? Attached patch for D6 changes to Theme guide

The Drupal 5 (and earlier) link is http://drupal.org/node/509 - see attached patch, which changes the link to Theme developer's guide

I thought "could putting something as version-brittle as this in theme.inc be a bad idea?", but figure it only changes with major versions, so is not that big a deal.

dave reid’s picture

I'd probably change the 6.x version of the link to the node/X version since I'm guessing it'll be renamed to theme-guide/6 eventually.

lyricnz’s picture

StatusFileSize
new405 bytes

Sure thing. Attached.

dave reid’s picture

Status: Needs review » Reviewed & tested by the community

6.x patch from #4 and 5.x patch from #2 applied, tested and good to go.

dries’s picture

I've committed the patch from #4 to CVS HEAD and DRUPAL-6. Thanks!

lyricnz’s picture

Version: 6.4 » 5.10

Mark issue as fixed when patch from #2 is applied to D5.

pasqualle’s picture

Version: 5.10 » 5.x-dev
drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5.x.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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