diff --git a/core/modules/outside_in/src/OffCanvasFormDialogTrait.php b/core/modules/outside_in/src/OffCanvasFormDialogTrait.php index 00954fb308..14911f1c59 100644 --- a/core/modules/outside_in/src/OffCanvasFormDialogTrait.php +++ b/core/modules/outside_in/src/OffCanvasFormDialogTrait.php @@ -106,7 +106,7 @@ protected function getDestinationUrl() { * The redirect path or NULL if it is not specified. */ protected function getRedirectDestinationPath() { - if ($this->requestStack->getCurrentRequest()->get('destination')) { + if ($this->getRequest()->get('destination')) { return $this->getRedirectDestination()->get(); } }