fixed URL generation in URL::buildCurrentURL()