From 677c21262ccde53e85f8a34e0a37f822bbc57e40 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Tue, 20 Oct 2026 09:40:38 -0500 Subject: [PATCH] docs: encode the page URL in the import bookmarklet (#8810) Co-authored-by: Claude Opus 5.5 --- .../community-guide/import-recipe-bookmarklet.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/docs/documentation/community-guide/import-recipe-bookmarklet.md b/docs/docs/documentation/community-guide/import-recipe-bookmarklet.md index ed8401b62..91dba5cd7 100644 --- a/docs/docs/documentation/community-guide/import-recipe-bookmarklet.md +++ b/docs/docs/documentation/community-guide/import-recipe-bookmarklet.md @@ -12,10 +12,15 @@ var url = document.URL.endsWith('/') ? document.URL; var mealie = "http://localhost:8080"; var group_slug = "home" // Change this to your group slug. You can obtain this from your URL after logging-in to Mealie +var use_keywords = "" // Optional: "1" to import the original keywords as tags, "0" to not. Leave empty to use your last choice +var edit = "" // Optional: "1" to stay in edit mode after importing, "0" to not. Leave empty to use your last choice if (mealie.slice(-1) === "/") { mealie = mealie.slice(0, -1) } -var dest = mealie + "/g/" + group_slug + "/r/create/url?recipe_import_url=" + url; +var dest = mealie + "/g/" + group_slug + "/r/create/url" + + "?use_keywords=" + use_keywords + + "&edit=" + edit + + "&recipe_import_url=" + encodeURIComponent(url); window.open(dest, "_blank"); ```