From 0712afce5b1fc4ea1bfd28da800bb72da2668230 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Fri, 17 Jul 2026 05:32:01 +0200 Subject: [PATCH] fix: attribute diagnostic warnings to the intrinsic page Use the partial's threaded page argument (with global fallback) instead of the global page context in the argument-validation warning path. The global identifies the render that triggered the call, which can be a foreign page when another render materializes this page's content (render-once design, slice D7 sweep). Diagnostics only; output bytes are unchanged. Co-Authored-By: Claude Fable 5 --- layouts/_partials/assets/netlify-contact-form-hook.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_partials/assets/netlify-contact-form-hook.html b/layouts/_partials/assets/netlify-contact-form-hook.html index e6605d6..5e32807 100644 --- a/layouts/_partials/assets/netlify-contact-form-hook.html +++ b/layouts/_partials/assets/netlify-contact-form-hook.html @@ -8,7 +8,7 @@ "warnid" "warn-invalid-arguments" "msg" "Invalid arguments" "details" ($args.errmsg | append $args.warnmsg) - "file" page.File + "file" (or $args.page page).File )}} {{ $error = $args.err }} {{ end }}