Skip to content

Commit

Permalink
πŸ› Fixed incorrect redirect when clicking on a searchbar result
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario-SO committed Aug 2, 2024
1 parent bff9156 commit 15b4cb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app/lib/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 15b4cb0

Please sign in to comment.