diff --git a/core/lib/Drupal/Core/Entity/EntityBase.php b/core/lib/Drupal/Core/Entity/EntityBase.php
index 781417760ce6ec6b12f7a58b13bb15887d66481d..4194d23780800d1e882f0ca8a8516a017be42b99 100644
--- a/core/lib/Drupal/Core/Entity/EntityBase.php
+++ b/core/lib/Drupal/Core/Entity/EntityBase.php
@@ -180,6 +180,9 @@ public function toUrl($rel = NULL, array $options = []) {
       elseif (isset($link_templates['edit-form'])) {
         $rel = 'edit-form';
       }
+      elseif (isset($link_templates['delete-form'])) {
+        $rel = 'delete-form';
+      }
       else {
         $exception_message = "Cannot generate default URL because no link template 'canonical' or 'edit-form' was found for the '{$this->getEntityTypeId()}' entity type";
       }