From 5b4f413801998f5aa588f12428555e221dc81b3d Mon Sep 17 00:00:00 2001 From: robert-costello Date: Fri, 10 Jan 2025 16:49:23 -0500 Subject: [PATCH] prevent default click event behavior to preserve full url --- .../cloudcare/static/cloudcare/js/formplayer/menus/views.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views.js index 80bd5d46a5bc..cdf31c67e43e 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views.js @@ -1340,7 +1340,8 @@ hqDefine("cloudcare/js/formplayer/menus/views", [ 'click .js-home': 'onClickHome', 'keydown .js-home': 'onKeyActionHome', }, - onClickHome: function () { + onClickHome: function (e) { + e.preventDefault(); if (!FormplayerFrontend.confirmUserWantsToNavigateAwayFromForm()) { return; }