Skip to content

Commit

Permalink
Fix redirect when Omeka is in a subdirectory of DocumentRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
jajm committed Jun 7, 2017
1 parent a2f3544 commit c9d88f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/SetlocaleController.php
Expand Up @@ -14,6 +14,6 @@ public function setlocaleAction()
$referer = $this->getRequest()->getHeader('Referer');
$url = $this->getParam('redirect', $referer);
$url = $url ?: '/';
$this->redirect($url);
$this->getHelper('Redirector')->setPrependBase(false)->goToUrl($url);
}
}

0 comments on commit c9d88f5

Please sign in to comment.