Skip to content

query in parseQuery includes a leading ? #2571

@JammingBen

Description

@JammingBen

Reproduction

https://github.com/JammingBen/vue-router-query-issue

Steps to reproduce the bug

Expected behavior

The query in https://github.com/JammingBen/vue-router-query-issue/blob/main/src/router/index.ts#L6 does not lead with a ?, so it should be e.g. foo=bar.

Actual behavior

The query leads with a ?: ?foo=bar.

Additional information

This only happens with the latest version v4.6.0. Possibly related to f89a842?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions