Note not found

This commit is contained in:
2025-05-18 08:19:44 +01:00
parent 5fe6dee6c5
commit bea35beb50
2 changed files with 15 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ class GuiController extends AbstractController {
'title' => 'Joe Carstairs\' notes',
'description' => 'Joe Carstairs\' notes',
'note' => $note,
'slug' => $slug,
];
}
@@ -74,7 +75,7 @@ class GuiController extends AbstractController {
$entityManager->persist($note);
$entityManager->flush();
return $this->redirectToRoute('note', ['slug' => $note->getSlug()]);
return $this->redirectToRoute('note', ['slug' => $slug]);
}
return $this->render('/write_note.html.twig', [