Skip to content

Commit

Permalink
added query to search redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
MeesoPost authored and AliKdhim87 committed May 21, 2024
1 parent 058ab45 commit 1dca57b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Search = async ({ params: { locale, query } }: SearchProps) => {
const searchResults = await getSuggestedSearch(locale, decodeQuery);

if (searchResults && searchResults.hits && searchResults.hits.length === 0) {
redirect(`/search/tips/${decodeQuery}`);
redirect(`/search/tips?query=${decodeQuery}`);
}

const results =
Expand Down

0 comments on commit 1dca57b

Please sign in to comment.