From faa1eaf74e3002b24c94c75c79f9eece3fd817e8 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Wed, 3 Sep 2025 11:16:49 +0000 Subject: [PATCH] Update video navigation to use shorter, generated IDs Modify the navigation logic in VideoPage.tsx to use a shortened, generated ID (first 8 characters after removing hyphens) for video routing instead of the full UUID. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/HCAS0JG --- client/src/pages/VideoPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index c106dcb..b0dc98e 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -143,7 +143,9 @@ export default function VideoPage() { const newVideo = allVideos[newIndex]; if (newVideo) { - setLocation(`/video/${newVideo.id}`); + // Generate short ID for navigation + const shortId = newVideo.id.replace(/-/g, '').substring(0, 8); + setLocation(`/video/${shortId}`); } };