diff --git a/website/src/components/SearchPage/SearchForm.tsx b/website/src/components/SearchPage/SearchForm.tsx index 95097c2ad6..a05a59a721 100644 --- a/website/src/components/SearchPage/SearchForm.tsx +++ b/website/src/components/SearchPage/SearchForm.tsx @@ -13,7 +13,7 @@ import { PangoLineageField } from './fields/PangoLineageField'; import { getClientLogger } from '../../clientLogger.ts'; import { getLapisUrl } from '../../config.ts'; import { useOffCanvas } from '../../hooks/useOffCanvas'; -import { type ClassOfSearchPageType, navigateToSearchLikePage, routes } from '../../routes/routes.ts'; +import { type ClassOfSearchPageType, navigateToSearchLikePage } from '../../routes/routes.ts'; import type { AccessionFilter, GroupedMetadataFilter, MetadataFilter, MutationFilter } from '../../types/config.ts'; import type { ReferenceGenomesSequenceNames } from '../../types/referencesGenomes.ts'; import type { ClientConfig } from '../../types/runtimeConfig.ts'; @@ -107,7 +107,7 @@ export const SearchForm: FC = ({ const resetSearch = async () => { setIsLoading(true); await clientLogger.info('reset_search'); - location.href = routes.searchPage(organism, []); + location.href = location.pathname; }; const lapisUrl = getLapisUrl(clientConfig, organism);