Skip to content

the url pattern is not conform to the URI generic syntax in the newest version 3.1.0 #2876

Closed
@yangshuan

Description

@yangshuan

Version

3.1.0

Reproduction link

https://github.com/yangshuan/vue-router-test-3.1.1

Steps to reproduce

Steps are very simple:

  1. Use the vue-cli to generate a new empty project;
  2. Start the project;
  3. Open a browser (e.g. Chrome), and open the application index page;
  4. Everything seems normal, but if you use url with parameters, e.g. http://localhost:8080/?a=1, the page will goto http://localhost:8080/#/?a=1, the uri is not right, it should be 'http://localhost:8080/?a=1#/'

What is expected?

The URI should always be conform to the URI generic syntax 'scheme:[//authority]path[?query][#fragment]', otherwise most of the lib or code which get the parameters from the URI will fail.

What is actually happening?

this url is not conform to the URI generic syntax which is 'scheme:[//authority]path[?query][#fragment]';
The problem the 3.1.0 version brings out is that, when we want to get the parameters from the URL by the default URI generic syntax, we fail all the time, since the uri is not right.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions