Keep select param on navigation and toggles
All checks were successful
Build Docker Image / build (push) Successful in 5m5s

This commit is contained in:
Ruslan Bakiev
2026-02-07 12:14:00 +07:00
parent 1f60062d15
commit 481a38b3a1
5 changed files with 17 additions and 17 deletions

View File

@@ -333,7 +333,7 @@ const searchTrigger = useState<number>('catalog-search-trigger', () => 0)
const onSearch = () => {
// Navigate to catalog page if not there
if (!route.path.includes('/catalog')) {
router.push({ path: localePath('/catalog'), query: { ...route.query, mode: 'quote' } })
router.push({ path: localePath('/catalog'), query: { ...route.query, mode: 'quote', select: 'product' } })
}
// Trigger search by incrementing the counter (page watches this)
searchTrigger.value++