summaryrefslogtreecommitdiff
path: root/app/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend')
-rw-r--r--app/frontend/controls/LanguageSelect.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/frontend/controls/LanguageSelect.php b/app/frontend/controls/LanguageSelect.php
index 08cdcb7..162eb19 100644
--- a/app/frontend/controls/LanguageSelect.php
+++ b/app/frontend/controls/LanguageSelect.php
@@ -40,7 +40,11 @@ class LanguageSelect extends FacadeTemplateControl {
$this->UserToChange,
$this->Languages->SelectedValue
);
- $this->Response->redirect($this->Service->constructUrl('Profile'));
+ $this->Response->redirect(
+ $this->Service->constructUrl(
+ $this->Service->getRequestedPage()->PagePath
+ )
+ );
}
private function _getLanguages() {