If I have a url like https://www.example.com/abc?q=10#hello then I can use parsed.href.slice(parsed.origin.length) to get just /abc?q=10#hello. However, this doesnt work if I create parsed using the unqualified url because origin will be "null".
I see another discussion going on about "null" but regardless, I think it would be nice if there was a convenient way of getting an unqualified url using this library.
If I have a url like
https://www.example.com/abc?q=10#hellothen I can useparsed.href.slice(parsed.origin.length)to get just/abc?q=10#hello. However, this doesnt work if I create parsed using the unqualified url because origin will be "null".I see another discussion going on about "null" but regardless, I think it would be nice if there was a convenient way of getting an unqualified url using this library.