Issue Bug Closed

#87070A redirect source called with an invalid pageType leads to error

Daniel Goerz 12/04/18, 11:05 updated 05/07/19, 12:15

Description

In the Redirect Middleware the TSFE is partially bootstrapped and $GLOBALS['TYPO3_CONF_VARS']['FE']['pageUnavailable_handling'] is set to false for this.

This leads to the following behavior:

  1. Create a redirect for any source, e.g. /foo/bar
  2. Visit /foo/bar/?type=12345678 (note: the typeNum must not be configured)

My first expectation would be that the type is ignored and the redirect is executed.
My second expectation would be that my configured pageUnavailable_handling kicks in for the undefined PageType.

But none of the expectations are met, instead the default TYPO3 error (depending on your displayErrors setting) is displayed

Reviews 2