Skip to content

Relative URLs that don't begin with a "/" replaced incorrectly #19

@aravindet

Description

@aravindet

For a page with something like

<a href='abc.php'>

When I open it with the callback

doc.find("a").each(el) {
    console.log(el.href)
}

it shows /home/me/project-path/node-modules/apricot/lib/abc.php. I'd expect just abc.php there, or that you'd resolve it relative to the URL I passed to Apricot.open().

Interestingly, URLs that begin with a "/" are left as they are and no attempt is made to add the domain etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions