Scottstamp stale links pr carry

squash and carry @scottstamp's PR #9646

and then fix the other things his script found.
It shouldn't, if the script is running inside the container, it's already referencing localhost by default. It does return a list of addresses that would need to be fixed manually though, so it's probably best to ensure the docs are accessible from outside the container.