We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d12b9 commit 88113e7Copy full SHA for 88113e7
src/transition.js
@@ -67,7 +67,12 @@ export default class RouteTransition {
67
redirect (path) {
68
if (!this.aborted) {
69
this.aborted = true
70
- path = mapParams(path, this.to.params, this.to.query)
+ if (typeof path === 'string') {
71
+ path = mapParams(path, this.to.params, this.to.query)
72
+ } else {
73
+ path.params = this.to.params
74
+ path.query = this.to.query
75
+ }
76
this.router.replace(path)
77
}
78
0 commit comments