Fixes broken links in a better way as per updates to config variables.