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
This commit is contained in:
parent
46a4abd430
commit
faa1eaf74e
@ -143,7 +143,9 @@ export default function VideoPage() {
|
|||||||
|
|
||||||
const newVideo = allVideos[newIndex];
|
const newVideo = allVideos[newIndex];
|
||||||
if (newVideo) {
|
if (newVideo) {
|
||||||
setLocation(`/video/${newVideo.id}`);
|
// Generate short ID for navigation
|
||||||
|
const shortId = newVideo.id.replace(/-/g, '').substring(0, 8);
|
||||||
|
setLocation(`/video/${shortId}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user