diff --git a/src/index.ts b/src/index.ts index d8efd3e..04968ce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -55,7 +55,7 @@ async function handleVideo(c: any): Promise { return new Response('', { status: 302, headers: { - 'Location': `https://www.tiktok.com/${awemeIdPattern.test(videoId) ? c.req.path : 't'}/${videoId}` + 'Location': 'https://www.tiktok.com' + `${awemeIdPattern.test(videoId) ? c.req.path : '/t/' + videoId}` } }) }