Route Types
| Route Pattern | Description |
|---|---|
/ | Home page, provisional chat (not yet persisted) |
/chat/:id | Standalone chat page |
/share/:id | Public shared chat page (read-only) |
/project/:projectId | Project page, provisional chat within project |
/project/:projectId/chat/:chatId | Chat within a project |
Parsing Pathnames
UseparseChatIdFromPathname from @/providers/parse-chat-id-from-pathname to extract chat ID, project ID, and route source from any pathname.
Related Hooks
useChatId()- Returns the current chat ID context includingsource(checksource === "share"for shared routes)