Skip to content

Commit 3eb6506

Browse files
authored
Fix navigate() usage when filtering
Signed-off-by: Sandeep Parikh <sandpari@qti.qualcomm.com>
1 parent 5ddba00 commit 3eb6506

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ProjectFilter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const ProjectFilter = ({ allProjects }) => {
6262
label: `Platforms: ${platforms.join(', ')}, Categories: ${categories.join(', ')}, Search: ${search}, Sort: ${sort}, Direction: ${direction}`
6363
})
6464

65-
navigate(`/?${params.toString()}`);
65+
navigate(`${window.location.pathname}?${params.toString()}`);
6666
};
6767

6868
// Toggle platform selection
@@ -242,4 +242,4 @@ const ProjectFilter = ({ allProjects }) => {
242242
);
243243
};
244244

245-
export default ProjectFilter;
245+
export default ProjectFilter;

0 commit comments

Comments
 (0)