protected function removeUriQueryArguments($redirectUri)
    {
        $uri = new \Neos\Flow\Http\Uri($redirectUri);
        $uri->setQuery(null);
        $redirectUri = (string)$uri;

        return $redirectUri;
    }