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);
    }
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);
    }
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 ) ; }
Builds the target URL according to the defined options.
Overwrites default page after login for admin siteaccess.

@param \Symfony\Component\HttpFoundation\Request $request

@return string

@throws \EzSystems\EzPlatformAdminUi\Exception\InvalidArgumentException
Builds the target URL according to the defined options . Overwrites default page after login for admin siteaccess .