Optimize the public sending page and navigation logic in presentation mode to ensure consistency in user experience

This commit is contained in:
shuaiplus
2026-05-04 21:35:21 +08:00
parent 70dc9a76a9
commit e0737006c2
6 changed files with 49 additions and 33 deletions
+3 -3
View File
@@ -422,7 +422,7 @@ export const DEMO_SENDS: Send[] = [
deletionDate: '2026-05-18T08:00:00.000Z',
expirationDate: null,
revisionDate: DEMO_NOW,
shareUrl: '/send/demo-note/demo-key',
shareUrl: '/#/send/demo-note/demo-key',
},
{
id: 'send-demo-file',
@@ -438,7 +438,7 @@ export const DEMO_SENDS: Send[] = [
deletionDate: '2026-05-11T08:00:00.000Z',
expirationDate: '2026-05-08T08:00:00.000Z',
revisionDate: DEMO_NOW,
shareUrl: '/send/demo-file/demo-key',
shareUrl: '/#/send/demo-file/demo-key',
file: {
id: 'send-file-001',
fileName: 'design-handoff.zip',
@@ -730,7 +730,7 @@ function sendFromDraft(draft: SendDraft, current?: Send | null): Send {
deletionDate: new Date(Date.now() + deletionDays * 86400_000).toISOString(),
expirationDate: expirationDays > 0 ? new Date(Date.now() + expirationDays * 86400_000).toISOString() : null,
revisionDate: now,
shareUrl: current?.shareUrl || (isFile ? '/send/demo-file/demo-key' : '/send/demo-note/demo-key'),
shareUrl: current?.shareUrl || (isFile ? '/#/send/demo-file/demo-key' : '/#/send/demo-note/demo-key'),
file: isFile ? {
id: current?.file?.id || createDemoId('send-file'),
fileName,