Skip to content

Commit ecdd4dc

Browse files
committed
Fix search
1 parent b706835 commit ecdd4dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Header.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ function Header({ menuOpen, menuOpenSetter }): JSX.Element {
8686
q: query,
8787
},
8888
};
89-
navigate(form.action + `?q=${encodeURIComponent(query)}`, options);
89+
90+
navigate(new URL(form.action).pathname + `?q=${encodeURIComponent(query)}`, options);
9091
return false;
9192
}
9293

0 commit comments

Comments
 (0)