Skip to content

Commit

Permalink
response redirect control added.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhunesi authored Sep 27, 2024
1 parent b86cb33 commit 3fa4fd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/widgets/FormioWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public function registerClientScript()
}
})
.then(response => {
if(response.redirected){
window.location.href = response.url;
}
return response.json();
}).then(e => {
if(e.status){
Expand Down Expand Up @@ -164,4 +167,4 @@ protected function i18n()
$this->clientOptions;

}
}
}

0 comments on commit 3fa4fd7

Please sign in to comment.