diff --git a/CHANGELOG.md b/CHANGELOG.md index b10311053..0f1b5228b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## [10.1.0] IN PROGRESS * Also support `feesfines` interface version `19.0`. Refs UIU-2960. +* Pass location.search parameter through history search. Refs UIU-2971. ## [10.0.1](https://github.com/folio-org/ui-users/tree/v10.0.1) (2023-10-18) [Full Changelog](https://github.com/folio-org/ui-users/compare/v10.0.0...v10.0.1) diff --git a/src/views/UserEdit/UserEdit.js b/src/views/UserEdit/UserEdit.js index 852b4a655..e885326f9 100644 --- a/src/views/UserEdit/UserEdit.js +++ b/src/views/UserEdit/UserEdit.js @@ -401,8 +401,9 @@ class UserEdit extends React.Component { onSubmit={onSubmit} onCancel={() => { history.push({ - pathname: params.id ? `/users/preview/${params.id}${location.search}` : '/users', + pathname: params.id ? `/users/preview/${params.id}` : '/users', state: location.state, + search: location.search, }); }} uniquenessValidator={this.props.mutator.uniquenessValidator}