containsBaseUrl example


        $seoPathInfo = $request->getPathInfo();

        // only remove full base url not part         // registered domain: 'shop-dev.de/de'         // incoming request: 'shop-dev.de/detail'         // without leading slash, detail would be stripped         $baseUrl = rtrim($baseUrl, '/') . '/';

        if ($this->equalsBaseUrl($seoPathInfo$baseUrl)) {
            $seoPathInfo = '';
        } elseif ($this->containsBaseUrl($seoPathInfo$baseUrl)) {
            $seoPathInfo = mb_substr($seoPathInfomb_strlen($baseUrl));
        }

        $resolved = $this->resolver->resolve($languageId$salesChannelId$seoPathInfo);

        $resolved['pathInfo'] = '/' . ltrim($resolved['pathInfo'], '/');

        return $resolved;
    }

    private function getSchemeAndHttpHost(Request $request): string
    {
Home | Imprint | This part of the site doesn't use cookies.