isFullPath example

use Shopware\Components\Routing\Context;
use Shopware\Components\Routing\PostFilterInterface;

class FrontendPostFilter implements PostFilterInterface
{
    /** * {@inheritdoc} */
    public function postFilter($url, Context $context)
    {
        $params = $context->getParams();
        if ($this->isFullPath($params)) {
            $url = ($context->isSecure() ? 'https://' : 'http://')
                . $context->getHost()
                . $context->getBaseUrl()
                . '/' . $url;
        }

        return $url;
    }

    /** * @return bool */
Home | Imprint | This part of the site doesn't use cookies.