The issue was that the create-chat view case was missing from the main rendering logic in workspace-application.tsx. While the URL parsing correctly identified the view and extracted parameters, there was no corresponding rendering case.
{currentView === 'create-chat' && routeParams.workspaceId && (
<div className="h-full overflow-y-auto">
<CreateChatView
workspaceId={routeParams.workspaceId}
groupId={queryParams.groupId || null}
/>
</div>
)}- Added
groupId?: string | nullto props interface - Added visual indication for group context
- Enhanced cancel button navigation
import { CreateChatView } from '@/components/workspace/chat/create-chat-view';/add/chat/3bb95a95-f957-4a9b-841b-12ff980295a8- Basic chat creation/add/chat/3bb95a95-f957-4a9b-841b-12ff980295a8?groupId=some-group-id- With group context
- URL with groupId parameter should now render the CreateChatView component
- Component should show "Group context" badge when groupId is present
- Chat creation should work normally
- Cancel button should preserve group context in navigation
- No more navigation to wrong pages when clicking create chat with groupId
✅ FIXED - The create-chat view now properly handles groupId parameters and renders correctly.