Skip to content

Why replace '+' with space in query param? #1760

@66beta

Description

@66beta

Version

2.7.0

Reproduction link

https://github.com/vuejs/vue-router/blob/dev/src/util/query.js#L48

Steps to reproduce

http://***//?p=xxx+yyy

What is expected?

route.query.p => 'xxx+yyy'

What is actually happening?

route.query.p => 'xxx yyy'

Does this necessary?
src/util/query.js
line: 48

var parts = param.replace(/\ /g, ' ').split('=');

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