This reverts commit 22f175cf. This was adding the backslash to the end of any URLs, including those with anchors or filenames. (cherry picked from commit f285aaf6)