--- title: Routing tags: - frontend - routing - pages --- # Routing ## Overview React Router 7 with lazy-loaded pages. All routes defined in `react_frontend/src/App.tsx`. Every page uses `React.lazy()` with a custom `` skeleton fallback. ## Route Table | Path | Page Component | Skeleton | Description | |---|---|---|---| | `/` | `HomePage` | `HomeSkeleton` | Landing page with trending/popular | | `/search` | `SearchPage` | `HomeSkeleton` | TMDB multi-search | | `/dashboard` | `DashboardPage` | `DashboardSkeleton` | [[Statistics]] charts | | `/library` | `LibraryPage` | `LibrarySkeleton` | [[Library]] grid/list | | `/discover/:category` | `DiscoverPage` | `HomeSkeleton` | TMDB browse (popular, trending, top-rated, upcoming) | | `/watchlist` | `WatchlistPage` | `WatchlistSkeleton` | Watchlist entries | | `/history` | `HistoryPage` | `WatchlistSkeleton` | [[History]] — list, timeline, year in review | | `/collections` | `CollectionsPage` | `CollectionsSkeleton` | [[Collections]] overview | | `/collections/:id` | `CollectionDetailsPage` | `CollectionDetailsSkeleton` | Collection with entries | | `/media` | `MediaPage` | `MediaSkeleton` | Media management | | `/discovery-videos` | `DiscoveryVideosPage` | `DiscoveryVideosSkeleton` | Personal video vault — see [[Discovery Videos]] | | `/calendar` | `CalendarPage` | `CalendarSkeleton` | [[Calendar]] upcoming episodes | | `/entry/tmdb/:type/:tmdbId` | `EntryDetailsPage` | `EntryDetailsSkeleton` | Entry not in the library (TMDB preview, same page) | | `/entry/tmdb/:type/:tmdbId/cast` | `TmdbCastsPage` | `PeopleSkeleton` | Full cast of a TMDB-only entry | | `/entry/:id` | `EntryDetailsPage` | `EntryDetailsSkeleton` | Entry details, seasons, cast | | `/entry/:id/cast` | `EntryCastsPage` | `EntryDetailsSkeleton` | Full cast & crew | | `/entry/:entryId/season/:seasonId` | `SeasonPage` | `SeasonSkeleton` | Season episodes | | `/entry/:entryId/season/:seasonId/episode/:episodeId` | `EpisodePage` | `EpisodeSkeleton` | Episode details | | `/people` | `PeoplePage` | `PeopleSkeleton` | [[People]] browse | | `/people/:id` | `PersonDetailsPage` | `PersonDetailsSkeleton` | Person profile + filmography | | `/people/tmdb/:tmdbId` | `PersonDetailsPage` | `PersonDetailsSkeleton` | Person not in the DB (TMDB data, same page) | | `/watch-buddies` | `WatchBuddiesPage` | `PeopleSkeleton` | Watch buddies | | `/watch-buddies/:id` | `WatchBuddyProfilePage` | `PeopleSkeleton` | Buddy profile | | `/settings` | `SettingsPage` | `SettingsSkeleton` | [[Settings Page]] | ## Layout All routes are wrapped in `AppLayout` which provides: - `Sidebar` — left-side navigation - Main content area ## URL Patterns ### Entry Details Hierarchy ``` /entry/:id → EntryDetailsPage /entry/:entryId/season/:seasonId → SeasonPage /entry/:entryId/season/:seasonId/episode/:episodeId → EpisodePage ``` ### Breadcrumbs See [[Navigation]] for breadcrumb patterns on nested pages. ## See Also - [[Pages]] — Detailed page documentation - [[Navigation]] — Breadcrumb patterns - [[Frontend]] — App-level setup