From 7a4dd567dc4e9091aaec84cb0ff0ca387307635f Mon Sep 17 00:00:00 2001 From: Stefan Hardegger Date: Fri, 31 Oct 2025 09:13:25 +0100 Subject: [PATCH] editing a story goes to detail view --- frontend/src/app/stories/[id]/edit/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';