We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c31c4e commit 32678ddCopy full SHA for 32678dd
examples/instantsearch/src/instantsearch.ts
@@ -182,11 +182,7 @@ export function getInstantSearchCurrentCategory() {
182
183
// Build URLs that InstantSearch understands.
184
export function getInstantSearchUrl(indexUiState) {
185
- return `${instantSearchRouter
186
- .createURL({
187
- [INSTANT_SEARCH_INDEX_NAME]: indexUiState,
188
- })
189
- .replace(window.location.origin + window.location.pathname, '')}`;
+ return search.createURL({ [INSTANT_SEARCH_INDEX_NAME]: indexUiState });
190
}
191
192
// Return the InstantSearch index UI state.
0 commit comments