From 0819f4179111709f303a3fff37e4dfd12a3e1b83 Mon Sep 17 00:00:00 2001 From: Catalin <85691190+ccataalin@users.noreply.github.com> Date: Mon, 12 Feb 2024 18:32:21 +0200 Subject: [PATCH] update prevent-back-button.js --- .../hdx_theme/fanstatic/onboarding/prevent-back-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/onboarding/prevent-back-button.js b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/onboarding/prevent-back-button.js index 52715b739d..78e0991439 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/onboarding/prevent-back-button.js +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/onboarding/prevent-back-button.js @@ -6,7 +6,7 @@ window.onpopstate = function (event) { if (r === true) { history.back(); } else { - window.history.pushState({page: 2}, '', ''); + window.history.pushState({page: 2}, null, null); } } }