diff --git a/src/Form/RdfDeleteForm.php b/src/Form/RdfDeleteForm.php index 90726606..e2e387cb 100755 --- a/src/Form/RdfDeleteForm.php +++ b/src/Form/RdfDeleteForm.php @@ -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('')); + if (empty($form_state->getRedirect())) { + $form_state->setRedirectUrl(Url::fromRoute('')); + } } }