Web: People: fixed reset filter after switching from profile

This commit is contained in:
Artem Tarasov 2021-04-05 18:06:48 +03:00
parent 9d7f6265e7
commit 056c288fae

View File

@ -400,8 +400,15 @@ class SectionHeaderContent extends React.PureComponent {
onClickBack = () => {
const { filter, setFilter, history, resetProfile } = this.props;
resetProfile();
const backUrl = combineUrl(AppServerConfig.proxyURL, config.homepage);
history.push(backUrl);
const url = filter.toUrlParams();
const backUrl = combineUrl(
AppServerConfig.proxyURL,
config.homepage,
`filter?/${url}`
);
history.push(backUrl, url);
setFilter(filter);
};