In my extbase controller action, I want to redirect to another controller / action after the file has been downloaded, so I call
$this->redirect('index', 'Download', null, null, $this->settings['listView']);
The problem is that the current language setting is lost during the redirect. The method signature allows an array of $arguments in fourth position, but if I put in L there
$this->redirect('index', 'Download', null, array('L' => $GLOBALS['TSFE']->sys_language_uid), $this->settings['listView']);
redirection wraps this with an extension parameter parameter such as
&tx_myext_controller[L]=0
So my question is: How to add the current language to extbase redirection?
source share