getRedirectLocation example


        $requestCategoryId = (int) $request->getParam('sCategory');

        $categoryContent = $this->loadCategoryContent($requestCategoryId$request);

        $emotionConfiguration = $this->getEmotionConfiguration(
            $requestCategoryId,
            false,
            $categoryContent['streamId']
        );

        $location = $this->getRedirectLocation($categoryContent$emotionConfiguration['hasEmotion']$shopContext);
        if (\is_string($location)) {
            $this->redirect($location['code' => Response::HTTP_MOVED_PERMANENTLY]);

            return;
        }

        $hasCustomerStreamEmotions = $this->customerStreamRepository
            ->hasCustomerStreamEmotions($requestCategoryId);

        if ($hasCustomerStreamEmotions && !$request->getParam('sPage')) {
            $assign = $this->View()->getAssign();
            
Home | Imprint | This part of the site doesn't use cookies.