From d4ecb56c51127457112821072d50ce3bb5050722 Mon Sep 17 00:00:00 2001 From: vitaliy-golomoziy Date: Wed, 20 Dec 2023 17:03:26 +0200 Subject: [PATCH] fix: fixing wrong redirect when restoring admin password (#24) --- Plugins/EmulatedAdminEmailUrls.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugins/EmulatedAdminEmailUrls.php b/Plugins/EmulatedAdminEmailUrls.php index 373a45e..b886556 100644 --- a/Plugins/EmulatedAdminEmailUrls.php +++ b/Plugins/EmulatedAdminEmailUrls.php @@ -37,6 +37,9 @@ public function beforeGetTransport() { if ($this->_configuration->isActive()) { $this->originalScope = $this->_urlModel->getScope(); + if ($this->originalScope === null) { + $this->originalScope = $this->_store->getStore('admin'); + } $this->_urlModel->setScope($this->_store->getStore()); }