Skip to content

Commit

Permalink
fixed the href
Browse files Browse the repository at this point in the history
  • Loading branch information
mirafedas committed Feb 28, 2024
1 parent 1a66aa4 commit 67ae3e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/blocks/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 67ae3e0

Please sign in to comment.