Skip to content

Commit

Permalink
fix: ssurt not set in api.SearchRequest
Browse files Browse the repository at this point in the history
This commit fixes the regression that api.SearchRequest.Ssurt() was empty string
when searching for a resource.
  • Loading branch information
maeb committed May 15, 2024
1 parent f2874da commit 951a7af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func (c *SearchRequest) Parse(values url.Values) error {
func ClosestRequest(closest string, url *whatwgUrl.Url) *SearchRequest {
return &SearchRequest{
whatwgUrl: url,
ssurt: surt.UrlToSsurt(url),
limit: 10,
sort: index.SortClosest,
closest: closest,
Expand Down

0 comments on commit 951a7af

Please sign in to comment.