Skip to content

[extra::url] Support relative URLs #10706

Closed
@SimonSapin

Description

@SimonSapin

The module currently does not support parsing relative URLs such as ../foo.html.

There should be an additional parsing function that takes an optional parsed base URL:

pub fn parse(url: &str, base_url: Option<Url>) -> Result<Url, ~str> { /* …*/ }

(The current from_str function would just call parse with None for the base URL.)

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