Documentation of urlparse.urljoin
, mentions that:
"Informally, this uses components of the base URL, in particular the addressing scheme, the network location and (part of) the path"
Thus I expect that:
urljoin('http://localhost:3000/foo', 'bar')
will give me:
http://localhost:3000/foo/bar
however I get:
http://localhost:3000/bar
I suppose that this is too common scenario to be a bug. Thus I expect that this is the normal behavior, and I was wondering: why? What do they mean "(part of) the path"? Isn't foo
the actual path?