You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Yes. But it's prone to error if I have to put that if statement everything. People who are unfamiliar with this library will see === 'null' and thing wtf?
If I have a url like
https://www.example.com/abc?q=10#hello
then 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.
The text was updated successfully, but these errors were encountered: