bugfix URL generation - extra forward slashes were being inserted