From 15b4cb02cfbdfe3591144a39c8e852ca3e4396f7 Mon Sep 17 00:00:00 2001 From: mariodev Date: Fri, 2 Aug 2024 13:21:36 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20incorrect=20redirect=20w?= =?UTF-8?q?hen=20clicking=20on=20a=20searchbar=20result?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/app/lib/utils/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app/lib/utils/utils.ts b/packages/app/lib/utils/utils.ts index 572bfaa9b..d986e37f1 100644 --- a/packages/app/lib/utils/utils.ts +++ b/packages/app/lib/utils/utils.ts @@ -144,7 +144,9 @@ export const archivePath = ({ params.append('searchQuery', searchQuery) } - return `/${organizationSlug}/videos?${params.toString()}` + return organizationSlug + ? `/${organizationSlug}/videos?${params.toString()}` + : `/explore?${params.toString()}` } export const hasOrganization = (