Skip to content

Commit

Permalink
Fix FormProtector validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad authored May 29, 2024
1 parent 3ddc66e commit b6f1885
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/View/Helper/CrudViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,12 @@ public function redirectUrl(): ?string
return null;
}

$this->Form->unlockField('_redirect_url');

return $this->Form->hidden('_redirect_url', [
'name' => '_redirect_url',
'value' => $redirectUrl,
'id' => null,
'secure' => FormHelper::SECURE_SKIP,
]);
}

Expand Down

0 comments on commit b6f1885

Please sign in to comment.