Skip to content

Commit 029a0f7

Browse files
committed
respect transition.redirect params and query
1 parent 1d5b351 commit 029a0f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export default class RouteTransition {
7171
if (typeof path === 'string') {
7272
path = mapParams(path, this.to.params, this.to.query)
7373
} else {
74-
path.params = this.to.params
75-
path.query = this.to.query
74+
path.params = path.params || this.to.params
75+
path.query = path.query || this.to.query
7676
}
7777
this.router.replace(path)
7878
}

0 commit comments

Comments
 (0)