It turns out path.Join is not appropriate for URLs.. (// => /)