Skip to content

Commit

Permalink
fix(client): restore back button navigation on projects for anon users
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-cavazzi committed Sep 1, 2022
1 parent 801f712 commit f674370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/project/list/ProjectList.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,14 @@ function ProjectList(props) {
// Searching in own or starred projects
if (section !== SECTION_MAP.all) {
const newUrl = Url.get(Url.pages.projects.all, searchParams);
props.history.push(newUrl);
props.history.replace(newUrl);
return null;
}
// filtering per user or group
if (searchParams.searchIn !== SEARCH_IN_MAP.projects.value) {
const newParams = { ...searchParams, searchIn: SEARCH_IN_MAP.projects.value };
const newUrl = Url.get(Url.pages.projects.all, newParams);
props.history.push(newUrl);
props.history.replace(newUrl);
return null;
}
}
Expand Down

0 comments on commit f674370

Please sign in to comment.