Skip to content

URL#searchParams#delete removes "?" #14020

Description

@stevenvachon
const {URL} = require("url");

const url = new URL("http://host/?param");
url.searchParams.delete("param");
url.href;
//-> http://host/

It should produce http://host/? according to @TimothyGu.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.whatwg-urlIssues and PRs related to the WHATWG URL implementation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions