Skip to content

Empty path navigates up the hierarchy? #157

@jho406

Description

@jho406

Hi

I was expecting this library to closely mimic how fetch parses relative paths, so I'm not quite sure if this is a bug or maybe my expectation is wrong. Here's an example:

parse("", "http://foo.com/a/b/c")

Navigates up the hierarchy and produces:
"http://foo.com/a/b"

But I was expecting the path remain unchanged http://foo.com/a/b/c. Here's an example with fetch(''):

Assuming i'm already on http://foo.com/a/b/c

fetch('')

would init a request for "http://foo.com/a/b/c"

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions