From 4acd182ffd0a7e330941cb13caa26d628987e70f Mon Sep 17 00:00:00 2001 From: Megan Thomas Date: Mon, 2 Oct 2023 14:30:11 -0700 Subject: [PATCH] MWPW-136232 Localize faas destination url when complete (#1378) --- libs/blocks/faas/utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/blocks/faas/utils.js b/libs/blocks/faas/utils.js index 5ac88f98b2..94a9ef96f0 100644 --- a/libs/blocks/faas/utils.js +++ b/libs/blocks/faas/utils.js @@ -352,7 +352,11 @@ export const initFaas = (config, targetEl) => { if (state.complete) { if (state.js) { Object.keys(state.js).forEach((key) => { - state[key] = state.js[key]; + if (key === 'd') { + state[key] = localizeLink(state.js[key]); + } else { + state[key] = state.js[key]; + } }); delete state.js; }