diff --git a/frontend/src/app/stories/[id]/edit/page.tsx b/frontend/src/app/stories/[id]/edit/page.tsx index c781129..8bcccc3 100644 --- a/frontend/src/app/stories/[id]/edit/page.tsx +++ b/frontend/src/app/stories/[id]/edit/page.tsx @@ -186,13 +186,13 @@ export default function EditStoryPage() { }; const updatedStory = await storyApi.updateStory(storyId, updateData); - + // If there's a new cover image, upload it separately if (coverImage) { await storyApi.uploadCover(storyId, coverImage); } - router.push(`/stories/${storyId}`); + router.push(`/stories/${storyId}/detail`); } catch (error: any) { console.error('Failed to update story:', error); const errorMessage = error.response?.data?.message || 'Failed to update story';