Skip to content

How to get an unqualified url? #78

Open
@ccorcos

Description

@ccorcos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions