Skip to content

Commit

Permalink
fix: fixing wrong redirect when restoring admin password (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-golomoziy authored Dec 20, 2023
1 parent bc984a6 commit d4ecb56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Plugins/EmulatedAdminEmailUrls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit d4ecb56

Please sign in to comment.