Closed
Description
Version
3.1.0
Reproduction link
https://github.com/yangshuan/vue-router-test-3.1.1
Steps to reproduce
Steps are very simple:
- Use the vue-cli to generate a new empty project;
- Start the project;
- Open a browser (e.g. Chrome), and open the application index page;
- 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.