Skip to content

Commit

Permalink
Correct the config key.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Shanahan-Kluth committed Jun 18, 2020
1 parent 7f74859 commit 1c3b23d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Observer/DisableFrontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function execute(Observer $observer)
$controller = $observer->getControllerAction();
$this->redirect->redirect($controller->getResponse(), $this->helperBackend->getHomePageUrl());
}
elseif ($configValue['show_frontend_as'] === 'redirect_to') {
elseif ($configValue['show_frontend_as'] === 'specific_url') {
if (empty($configValue['redirect_to'])) {
// If there is no redirect destination, then throw an exception.
throw new \LogicException('No redirect destination was found.');
Expand Down

0 comments on commit 1c3b23d

Please sign in to comment.