Skip to content
New issue

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

Cannot use strings in redirect parameter for vue route #28

Open
manuelmazzuola opened this issue Mar 5, 2019 · 1 comment
Open

Cannot use strings in redirect parameter for vue route #28

manuelmazzuola opened this issue Mar 5, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@manuelmazzuola
Copy link

manuelmazzuola commented Mar 5, 2019

I get an error when trying to pass a string to the redirect parameter.
Am I doing something wrong?

new Router({
  routes: {
    { path: '*', redirect: '/' }, <- Cannot call `Router` with object literal bound to `options` because  string '/' is incompatible with  `Location` [2] in property `redirect` of array element of property `routes`
  }
})
@sobolevn
Copy link
Owner

sobolevn commented Mar 5, 2019

Yeap, that's a bug. Can you please send a PR with the fix?

@sobolevn sobolevn added the bug Something isn't working label Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants