As a follow-up to #2874238: Broken links in various topics, it seems like we need a test that verifies links in user guide pages, especially in the Additional Information and Attributions sections. Documentation is being migrated on drupal.org, and sometimes apparently there are not redirects from old URLs to new URLs being added. Maybe they aren't being added at all ever, I don't know, but it seems like we're having broken links at least once.
Comments
Comment #3
jhodgdonI've made a test, plus a script that finds all URLs in any of the source directories, so the test can be updated periodically.
Currently, 13 URLs are failing the test. I'll go ahead and commit the test as it is, and then I think I will repurpose #2874238: Broken links in various topics to fix the URLs all together in that issue.
Comment #4
jhodgdonI added a few more lines to the test, to test for URLs that have been redirected.
Comment #6
jhodgdonI decided this would be better as just a script that finds URLs and tests them all in one, rather than having the extra step of a Simpletest test. We can just run this script when we want to test the URLs. So, commit coming soon...
To run the URL test script, go to the scripts directory, and type
at the command line (after I make the commit, which should be in a few minutes.