Issue Bug Closed

#103171Redirect to file with "Force SSL Redirect" broken on iOS browsers

Thorsten May 02/21/24, 10:58 updated 12/02/25, 14:33

Description

When you create a redirect in the Redirects module that points to a file in fileadmin (t3://file?uid=xxx) and enable force_https, the resulting url looks like ‘https:/fileadmin/…’

Most browsers seem to handle this correctly and redirect to the chosen file, but iOS Browsers (Safari, Chrome) don’t add the domain an redirect to https://fileadmin/… what leads to an error.

Maybe a problem in /sysext/core/Classes/Http/RedirectResponse.php with setting $headers[‘location’] = [(string)$uri] or in /sysext/redirects/Classes/Http/Middleware/RedirectHandler.php where buildRedirectResponse is called.

Reviews 3