class LocaleSwitchRedirector implements HTTPMiddleware (View source)

This middleware will safely redirect you to the cms landing page when switching locales, in case you were viewing a url that does not apply to the new locale.

Methods

process(HTTPRequest $request, callable $delegate)

Generate response for the given request

Details

HTTPResponse process(HTTPRequest $request, callable $delegate)

Generate response for the given request

Parameters

HTTPRequest $request
callable $delegate

Return Value

HTTPResponse