As we set the language and some other variables in the Controller::__construct method which isn't run when a middleware returns a redirect/view some things are missing (wrong language, missing avatar etc). This PR fixes this by copying the code, however we should look whether we can add a init function somewhere which is run as soon as possible.
As we set the language and some other variables in the
Controller::__construct
method which isn't run when a middleware returns a redirect/view some things are missing (wrong language, missing avatar etc). This PR fixes this by copying the code, however we should look whether we can add ainit
function somewhere which is run as soon as possible.