From c69d1e9f8d611ee3bfaf9360b2f46ea8e4bda1ec Mon Sep 17 00:00:00 2001 From: Jarrod Sibbison <72240382+jsibbison-square@users.noreply.github.com> Date: Fri, 18 Jul 2025 05:17:07 +1000 Subject: [PATCH] fix: Fixes importing url encoded recipe deeplinks (#3446) --- ui/desktop/src/components/RecipesView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/desktop/src/components/RecipesView.tsx b/ui/desktop/src/components/RecipesView.tsx index 9096c3e6..8fd93cec 100644 --- a/ui/desktop/src/components/RecipesView.tsx +++ b/ui/desktop/src/components/RecipesView.tsx @@ -158,7 +158,8 @@ export default function RecipesView({ onLoadRecipe }: RecipesViewProps = {}) { if (!configBase64) { throw new Error('No recipe configuration found in deeplink'); } - const configJson = Buffer.from(configBase64, 'base64').toString('utf-8'); + const urlDecoded = decodeURIComponent(configBase64); + const configJson = Buffer.from(urlDecoded, 'base64').toString('utf-8'); const recipe = JSON.parse(configJson) as Recipe; if (!recipe.title || !recipe.description || !recipe.instructions) {