Skip to content

Conversation

@chickenland
Copy link
Contributor

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.

Manual testing scenarios

  1. Setup admin to run on a separate domain to the main site
  2. Attempt to mass remove all notifications within admin

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.
@chickenland chickenland changed the title Inconsistent Redirect Inconsistent Redirect in Admin Notification Controller Feb 23, 2018
}
$this->getResponse()->setRedirect($this->_redirect->getRedirectUrl($this->getUrl('*')));
$this->_redirect('adminhtml/*/');
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the end of the method. No need for return here

end of class meant return was un-needed
@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-589 has been created to process this Pull Request

@magento-engcom-team
Copy link
Contributor

@chickenland thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants