purl icon indicating copy to clipboard operation
purl copied to clipboard

add_path_segment: slashes in path segments getting quoted (readability)

Open keikoro opened this issue 9 years ago • 2 comments

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?

keikoro avatar Jul 23 '16 00:07 keikoro

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'.

denizdogan avatar May 13 '19 10:05 denizdogan

I'm trying to backtrack which project of mine made me post here in the first place, but no luck so far...

keikoro avatar May 19 '19 21:05 keikoro