How to globally replace a forward slash in a JavaScript string?
This has worked for me in turning "//" into just "/".
"//"
"/"
str.replace(/\/\//g, '/');