feat: add support for prefilled image URL in recipe creation and display

This commit is contained in:
Nils-Johan Gynther
2026-04-16 18:24:44 +02:00
parent d5b360fd62
commit 195d1ddbc6
2 changed files with 27 additions and 0 deletions
+3
View File
@@ -44,6 +44,9 @@ export default function CreateRecipePage() {
// Omdirigera till /recipes/write med förifylld Markdown
// Vi använder sessionStorage för att passa data mellan sidor
sessionStorage.setItem('prefilled_markdown', data.markdown);
if (data.imageUrl) {
sessionStorage.setItem('prefilled_image_url', data.imageUrl);
}
router.push('/recipes/write');
}
} catch (err) {