From 67ae3e06a03886cc5baf6e633443dd286755fb17 Mon Sep 17 00:00:00 2001 From: Mira Date: Wed, 28 Feb 2024 17:18:05 +0100 Subject: [PATCH] fixed the href --- libs/blocks/modal/modal.js | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/blocks/modal/modal.js b/libs/blocks/modal/modal.js index 0baf498b0b..fb633ca346 100644 --- a/libs/blocks/modal/modal.js +++ b/libs/blocks/modal/modal.js @@ -250,6 +250,7 @@ export function delayedModal(el) { if (!delay || !display || !hash) return false; const modalOpenEvent = new Event(`${hash}:modalOpen`); el.dataset.modalHash = hash; + el.href = hash; if (display === 'pageload') { setTimeout(() => { window.location.replace(hash);