Issue Task Closed

#83727Reimplement EXT:redirect as PSR-15 middleware

Benjamin Franzke 01/29/18, 21:17 updated 10/02/18, 10:52

Description

The redirect handling is a perfect usecase of PSR-15 middlewares.

Redirect handling wants to a) prevent the regular frontend rendering and b) return an own response. c) in case a no redirect matches it want’s the regular RequestHandler to be invoked.

a) is doable by not invoking the RequestHandler a middleware gets passed by parameter
b) is simple by simply returning an own PSR-7 Response
c) is the standard case for a middleware.

Reviews 1