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

Commit

Permalink
Do not override the form state redirect if one does exist already
Browse files Browse the repository at this point in the history
  • Loading branch information
idimopoulos committed Nov 29, 2018
1 parent b579757 commit b9c43c4
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 b9c43c4

Please sign in to comment.