Skip to content

Commit 8436ba9

Browse files
committed
(Merge branch) Programmatic Navigation: must use location in router.push
2 parents 8671932 + b626676 commit 8436ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IssueList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default class IssueList extends React.Component {
9797
}
9898

9999
setFilter(query) {
100-
this.props.router.push({ query });
100+
this.props.router.push({ pathname: this.props.location.pathname, query });
101101
}
102102

103103
showError(message) {

0 commit comments

Comments
 (0)