We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50eca27 commit 3e1deceCopy full SHA for 3e1dece
src/app/page.tsx
@@ -68,7 +68,9 @@ function SearchInterface() {
68
params.set("q", searchQuery.trim());
69
}
70
const newURL = params.toString() ? `/?${params.toString()}` : "/";
71
- router.replace(newURL);
+
72
+ // Use history API to avoid scroll jumps
73
+ window.history.replaceState(null, "", newURL);
74
};
75
76
const performSearch = async (searchQuery: string) => {
0 commit comments