Commit dd29bf4c authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Benni Mack
Browse files

[BUGFIX] Use given redirectUrl in „list“ wizard, if available

The „list“ wizard now checks whether the redirectUrl was given with
the request and uses this, otherwise it falls back to REQUEST_URI.

Resolves: #83146
Releases: master, 8.7
Change-Id: I0572e6f20c89f77bf11a1c7c2257e4a2c10f4f12

Tested-by: default avatarTYPO3com <>
Reviewed-by: default avatarJoerg Boesche <>
Reviewed-by: default avatarWolfgang Klinger <>
Reviewed-by: Alexander Opitz's avatarAlexander Opitz <>
Tested-by: Alexander Opitz's avatarAlexander Opitz <>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Tested-by: Benni Mack's avatarBenni Mack <>
parent e44470fb
......@@ -112,7 +112,9 @@ class ListController extends AbstractWizardController
$urlParameters = [];
$urlParameters['id'] = $this->pid;
$urlParameters['table'] = $this->P['params']['table'];
$urlParameters['returnUrl'] = GeneralUtility::getIndpEnv('REQUEST_URI');
$urlParameters['returnUrl'] = !empty($this->P['returnUrl'])
? GeneralUtility::sanitizeLocalUrl($this->P['returnUrl'])
: GeneralUtility::getIndpEnv('REQUEST_URI');
$redirectUrl = (string)$uriBuilder->buildUriFromRoute('web_list', $urlParameters);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment