Skip to content

Commit 6275f63

Browse files
chickenlandmageprince
authored andcommitted
Inconsistent Redirect
This controller has an inconsistent redirect mechanism (than other controllers in admin-notification). This means that if the admin has a different URL, the admin user is returned to the frontend URL of the default store instead.
1 parent b42f13b commit 6275f63

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/AdminNotification/Controller/Adminhtml/Notification

1 file changed

+2
-1
lines changed

app/code/Magento/AdminNotification/Controller/Adminhtml/Notification/MassRemove.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function execute()
3939
$this->messageManager->addException($e, __("We couldn't remove the messages because of an error."));
4040
}
4141
}
42-
$this->getResponse()->setRedirect($this->_redirect->getRedirectUrl($this->getUrl('*')));
42+
$this->_redirect('adminhtml/*/');
43+
return;
4344
}
4445
}

0 commit comments

Comments
 (0)