Skip to content

Commit

Permalink
Fixing submit redirect issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jalagari committed Apr 17, 2024
1 parent 97bf6cb commit 7b3f6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/form/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function submitSuccess(e, form) {
const { payload } = e;
const redirectUrl = form.dataset.redirectUrl || payload?.body?.redirectUrl;
const thankYouMsg = form.dataset.thankYouMsg || payload?.body?.thankYouMessage;
if (redirectUrl) {
if (redirectUrl && false) {
window.location.assign(encodeURI(redirectUrl));
} else {
let thankYouMessage = form.querySelector('.form-message.success-message');
Expand Down

0 comments on commit 7b3f6c8

Please sign in to comment.