Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #74 from ec-europa/redirect_persist
Browse files Browse the repository at this point in the history
Do not override the form state redirect if one does exist already
  • Loading branch information
claudiu-cristea authored Dec 3, 2018
2 parents b579757 + b9c43c4 commit e534a43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Form/RdfDeleteForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
'@type' => $this->entity->bundle(),
'%title' => $this->entity->label(),
]);
$form_state->setRedirectUrl(Url::fromRoute('<front>'));
if (empty($form_state->getRedirect())) {
$form_state->setRedirectUrl(Url::fromRoute('<front>'));
}
}

}

0 comments on commit e534a43

Please sign in to comment.