fix: 🐛 Fix accents, remove db from git
Tim Izzo tim@5ika.ch
Sat, 03 Jan 2026 15:51:02 +0100
3 files changed,
8 insertions(+),
3 deletions(-)
M
server.tsx
→
server.tsx
@@ -53,10 +53,14 @@ const recipeId = body.get("recipeId");
if (!recipeId) return c.redirect("/"); try { await storeRecipe(db, recipeId as string); - return c.redirect("/?msg=La recette a bien été ajoutée"); + return c.redirect( + `/?msg=${encodeURIComponent("La recette a bien été ajoutée")}` + ); } catch (error) { console.error(error); - return c.redirect("/?error=Erreur lors de l'ajout de la recette"); + return c.redirect( + `/?error=${encodeURIComponent("Problème lors de l'ajout")}` + ); } });