Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix redirects always going to the default store main URL #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions code/Debug/controllers/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function enableVarienProfilerAction()
$this->getService()->setVarienProfilerStatus(1);
$this->getService()->flushCache();

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -59,7 +60,8 @@ public function disableVarienProfilerAction()
$this->getService()->setVarienProfilerStatus(0);
$this->getService()->flushCache();

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand Down
6 changes: 4 additions & 2 deletions code/Debug/controllers/ModelController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public function enableSqlProfilerAction()
Mage::getSingleton('core/session')->addError('Unable to enable SQL profiler: ' . $e->getMessage());
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -43,7 +44,8 @@ public function disableSqlProfilerAction()
Mage::getSingleton('core/session')->addError('Unable to disable SQL profiler: ' . $e->getMessage());
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand Down
6 changes: 4 additions & 2 deletions code/Debug/controllers/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public function enableAction()
Mage::getSingleton('core/session')->addError('Unable to enable module: ' . $e->getMessage());
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -46,7 +47,8 @@ public function disableAction()
Mage::getSingleton('core/session')->addError('Unable to disable module: ' . $e->getMessage());
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}

}
21 changes: 14 additions & 7 deletions code/Debug/controllers/UtilController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public function flushCacheAction()
$this->getSession()->addError($message);
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -80,7 +81,8 @@ public function enableFPCDebugAction()
$this->getSession()->addError($message);
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -100,7 +102,8 @@ public function disableFPCDebugAction()
$this->getSession()->addError($message);
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -119,7 +122,8 @@ public function enableTemplateHintsAction()
$this->getSession()->addError($message);
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -137,7 +141,8 @@ public function disableTemplateHintsAction()
$this->getSession()->addError($message);
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -154,7 +159,8 @@ public function enableTranslateAction()
$this->getSession()->addError($message);
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}


Expand All @@ -172,7 +178,8 @@ public function disableTranslateAction()
$this->getSession()->addError($message);
}

$this->_redirectReferer();
$this->getResponse()->setRedirect();
$this->getResponse()->sendResponse();
}

}