From 5d195b63ef7fb3b3ce9029853c887380e7f3b8ec Mon Sep 17 00:00:00 2001 From: Stefan Hardegger Date: Fri, 8 Aug 2025 15:05:10 +0200 Subject: [PATCH] Fix dead links --- frontend/src/app/stories/import/bulk/page.tsx | 2 +- frontend/src/app/stories/import/epub/page.tsx | 8 +++---- frontend/src/app/stories/page.tsx | 23 +++++++++++++++++++ 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 frontend/src/app/stories/page.tsx diff --git a/frontend/src/app/stories/import/bulk/page.tsx b/frontend/src/app/stories/import/bulk/page.tsx index 911ff21..ff1ed4d 100644 --- a/frontend/src/app/stories/import/bulk/page.tsx +++ b/frontend/src/app/stories/import/bulk/page.tsx @@ -382,7 +382,7 @@ export default function BulkImportPage() { View Stories diff --git a/frontend/src/app/stories/import/epub/page.tsx b/frontend/src/app/stories/import/epub/page.tsx index 9c6cc5f..1f864b2 100644 --- a/frontend/src/app/stories/import/epub/page.tsx +++ b/frontend/src/app/stories/import/epub/page.tsx @@ -161,11 +161,11 @@ export default function EPUBImportPage() {
- Back to Stories + Back to Library

EPUB Import Successful @@ -236,11 +236,11 @@ export default function EPUBImportPage() {
- Back to Stories + Back to Library

Import EPUB diff --git a/frontend/src/app/stories/page.tsx b/frontend/src/app/stories/page.tsx new file mode 100644 index 0000000..8212bec --- /dev/null +++ b/frontend/src/app/stories/page.tsx @@ -0,0 +1,23 @@ +'use client'; + +import { useEffect } from 'react'; +import { useRouter } from 'next/navigation'; +import LoadingSpinner from '../../components/ui/LoadingSpinner'; + +export default function StoriesRedirectPage() { + const router = useRouter(); + + useEffect(() => { + // Redirect to library page + router.replace('/library'); + }, [router]); + + return ( +
+
+ +

Redirecting to Library...

+
+
+ ); +} \ No newline at end of file