Fix for Random Story Function

This commit is contained in:
Stefan Hardegger
2025-08-14 13:14:46 +02:00
parent 4357351ec8
commit 1d14d3d7aa
5 changed files with 128 additions and 5 deletions

View File

@@ -169,8 +169,8 @@ export default function LibraryPage() {
return;
}
// Navigate to the random story's reading page
router.push(`/stories/${randomStory.id}/read`);
// Navigate to the random story's detail page
router.push(`/stories/${randomStory.id}`);
} catch (error) {
console.error('Failed to get random story:', error);