diff --git a/src/RedirectExtension.php b/src/RedirectExtension.php index 9b3236a..59733d5 100644 --- a/src/RedirectExtension.php +++ b/src/RedirectExtension.php @@ -9,8 +9,8 @@ class RedirectExtension extends DataExtension public function onAfterDelete() { $redirects = RedirectUrl::get()->filterAny([ - 'FromID' => $this->owner->ID, - 'ToID' => $this->owner->ID + 'FromRelationID' => $this->owner->ID, + 'ToRelationID' => $this->owner->ID ]); foreach ($redirects as $redirect) {