From afc6ff4012f4bfd6e020c865c2dfd7884476c66a Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 10 Jun 2016 15:49:08 +0200 Subject: * LanguageSelect now redirects to the same page, not hardcoded Profile page --- app/frontend/controls/LanguageSelect.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/frontend') 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() { -- cgit v1.2.3