Skip to content

Commit

Permalink
fix: make instantsearch routing createURL return full absolute url
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstadler committed Jan 19, 2025
1 parent cebd3e3 commit e7a7099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/instantsearch/instantsearchprovider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function InstantSearchProvider(props: InstantSearchProviderProps): ReactN
}
}
const qa = qsModule.stringify(routeState);
return parts.join("/") + (qa && `?${qa}`);
return location.origin + parts.join("/") + (qa && `?${qa}`);
},
parseURL({ qsModule, location }) {
const queryArgs = qsModule.parse(location.search.slice(1));
Expand Down

0 comments on commit e7a7099

Please sign in to comment.