Skip to content

Commit

Permalink
set the allowRedirect to false on the productSuggestions query
Browse files Browse the repository at this point in the history
  • Loading branch information
hiagolcm committed Feb 14, 2022
1 parent 4d6df4a commit 6d7a93d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Fixed
- `productSearch` query ignores the `allowRedirect` property.
- `productSuggestions` doesn't return any result when there is a redirect set.

## [1.61.3] - 2022-02-03

Expand Down
1 change: 1 addition & 0 deletions node/resolvers/search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ export const queries = {
from: 0,
to: 4,
sort: convertOrderBy(args.orderBy),
allowRedirect: false, // When there is a redirect, no product is returned.
...workspaceSearchParams,
}

Expand Down

0 comments on commit 6d7a93d

Please sign in to comment.