protected function discussionsRedirect()
{
$referer = $this->request->getHTTPReferer();
$path = parse_url($referer, PHP_URL_PATH);
if ($path) {
$this->router->handle($path);
return $this->router->wasMatched() ? $this->response->redirect($path, true) : $this->indexRedirect();
} else {
return $this->indexRedirect();
}
}