Ensure top window is redirected - not the frame
This commit is contained in:
2
client/public/widgets/iframe.js
vendored
2
client/public/widgets/iframe.js
vendored
@@ -489,7 +489,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
if (event.data?.form?.redirect_target_url) {
|
||||
|
||||
// redirect to target URL
|
||||
window.location.href = event.data.form.redirect_target_url
|
||||
window.top.location.href = event.data.form.redirect_target_url
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
2
client/public/widgets/iframe.min.js
vendored
2
client/public/widgets/iframe.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user