Update story route from /editor to /story and add redirect

This commit is contained in:
Riccardo Giorato
2025-12-26 22:13:45 +01:00
parent b64efc71f6
commit 5a1d0e3849
5 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ export function ComicCreationForm({
const result = await response.json();
// Redirect to the story editor using slug
router.push(`/editor/${result.storySlug}`);
router.push(`/story/${result.storySlug}`);
} catch (error) {
console.error("Error creating comic:", error);
toast({