Skip to content

why query-string encode the fragmentIdentifier? #346

@luckymore

Description

@luckymore
queryString.stringifyUrl({
	url: 'https://foo.bar',
	query: {
		top: 'foo'
	},
	fragmentIdentifier: '/bar/hello'
});
// => 'https://foo.bar?top=foo#%2Fbar%2Fhello'

if set { encode: false }, the other query also won't be encoded

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions