Fix for bad url's

Some people weren't getting "condensed" in the orginal url, so the replace statement wouldn't work correctly