Skip to content

Commit fb8d97f

Browse files
committed
Send Search-only members to the Platform's Search from Home
type-check failed on the merged branch: Home's gate read routes.search, which the chat lane removed from legacyRoutes once Search was mapped. /search is a Platform route, so the redirect stays here.
1 parent 88f58ec commit fb8d97f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎apps/sim/platform/lib/data/home-server.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ const PREFETCH_TIMEOUT_MS = 2_000
2222
export function resolveHomeRedirect(organization: PlatformOrganization): string | null {
2323
const { mothershipAvailable, canBuild, searchAccess } = organization
2424
if (mothershipAvailable && canBuild) return null
25-
const routes = legacyRoutes(organization)
26-
return searchAccess.memberScoped ? routes.search : routes.workspaceSettings
25+
return searchAccess.memberScoped ? '/search' : legacyRoutes(organization).workspaceSettings
2726
}
2827

2928
/**

0 commit comments

Comments
 (0)