purl
purl copied to clipboard
add_path_segment: slashes in path segments getting quoted (readability)
Hi there,
I think I just ran into the "reverse" issue of #22 – readability of URLs with (now quoted) / in path seqments for e.g. logging and other text outputs (or lack thereof).
Is there a quick and easy fix for this – removing the quotes – which I might not be aware of?
Is this the same issue that I'm encountering?
In [7]: URL('http://localhost/foo/').add_path_segment('/bar').as_string()
Out[7]: 'http://localhost/foo/%2Fbar'
I'd expect it to be 'http://localhost/foo/bar'.
I'm trying to backtrack which project of mine made me post here in the first place, but no luck so far...