๐Ÿš— RELIALIMO Driver Portal URL Testing

This page demonstrates the individual driver portal URL routing system.

๐Ÿ“‹ Supported URL Formats:

๐Ÿงช Test URLs

Eric's Driver Portal (Test Driver ID)

Using Eric's driver ID for testing
https://relialimo.com/driver/99d34cd5-a593-4362-9846-db7167276592 https://relialimo.com/portal/99d34cd5-a593-4362-9846-db7167276592 https://relialimo.com/99d34cd5-a593-4362-9846-db7167276592

Direct Query Parameter Method (Most Reliable)

Uses URL query parameter for server-side routing
https://relialimo.com/driver-portal.html?driver_id=99d34cd5-a593-4362-9846-db7167276592

Hash Fragment Method (For Bookmarks)

Uses hash fragment for client-side routing
https://relialimo.com/driver-portal.html#driver-99d34cd5-a593-4362-9846-db7167276592 https://relialimo.com/driver-portal.html#99d34cd5-a593-4362-9846-db7167276592

Test Invalid Driver ID

This will show the "Driver Not Found" error screen
https://relialimo.com/driver/invalid-driver-id-123

Main Driver Portal (No Specific Driver)

General login screen for all drivers
https://relialimo.com/driver-portal.html

๐ŸŽฏ How It Works:

  1. URL Detection: The system detects driver IDs in URL paths and hash fragments
  2. Driver Lookup: Queries Supabase to find the driver by ID or portal slug
  3. Auto-Login: If driver found, pre-fills login form with their email
  4. Personalization: Updates page title and portal content for the specific driver
  5. Error Handling: Shows friendly error screen if driver not found
  6. Session Management: Remembers the driver and maintains their personal portal experience

๐Ÿ“ฑ Mobile Driver Experience

Each driver gets their own personalized portal URL that they can:

๐Ÿ› ๏ธ For Developers:

To set up a new driver portal:

const driverPortalUrl = `https://relialimo.com/driver/${driver.id}`;

This URL will automatically route to their personalized portal interface.