* Improve broken link detection, remove trailing slashes from URLs. Closes #3819. * Preserve hash when removing trailing slash in URL