protected function determineTargetUrl(Request $request)
    {
        if ((new IsAdmin($this->siteAccessGroups))->isSatisfiedBy($request->attributes->get('siteaccess'))) {
            $this->options['default_target_path'] = $this->defaultTargetPath;
            $target = $this->getTargetPath($request->getSession(), $this->providerKey);
            if (null !== $target && 1 === count(explode('/', trim(parse_url($target)['path'], '/')))) {
                $this->options['always_use_default_target_path'] = true;
            }
        }

        return parent::determineTargetUrl($request);
    }