Skip to content

Extra / added when building url #1734

Closed as duplicate of#7186
Closed as duplicate of#7186
@mavwolverine

Description

@mavwolverine
http_url = HttpUrl('http://test.com/abc')
https_url = HttpUrl.build(
            scheme="https",
            host=http_url.host,
            port=http_url.port,
            path=http_url.path,
            query=http_url.query,
            fragment=http_url.fragment,
)

NOTE: This is a simplified example.

The issue is with

url.push('/');

I think it should first check if path starts with / and add only if it does not.

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