We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A reasonable setup for vue-cli with vue-next (and router) would look like this:
const router = createRouter({ history: createWebHistory(process.env.BASE_URL), routes, });
Here BASE_URL defaults to /.
BASE_URL
/
In the older router there exists logic to strip the trailing slash:
https://github.com/vuejs/vue-router/blob/fc42d9cf8e1d381b885c9af37003198dce6f1161/src/history/base.js#L213-L231
This is probably gone in router-next. Therefore,
createWebHistory("/")
causes the router to attempt to pushState(.., "//"), resulting in SecurityError: The operation is insecure.
pushState(.., "//")
SecurityError: The operation is insecure.
vue-router 4.0.0-alpha.5
The text was updated successfully, but these errors were encountered:
createHistory
d7c71b5
No branches or pull requests
A reasonable setup for vue-cli with vue-next (and router) would look like this:
Here
BASE_URL
defaults to/
.In the older router there exists logic to strip the trailing slash:
https://github.com/vuejs/vue-router/blob/fc42d9cf8e1d381b885c9af37003198dce6f1161/src/history/base.js#L213-L231
This is probably gone in router-next. Therefore,
causes the router to attempt to
pushState(.., "//")
, resulting inSecurityError: The operation is insecure.
vue-router 4.0.0-alpha.5
The text was updated successfully, but these errors were encountered: