protected function generateLinkForToBasketParameters($aParameters = array(), $bIncludePortalLink)
    {
        $activePage = $this->getActivePageService()->getActivePage();
        if (!is_object($activePage)) {
            $sLink = '?'.TTools::GetArrayAsURL($aParameters);
            if ($bIncludePortalLink) {
                /** @var Request $request */
                $request = \ChameleonSystem\CoreBundle\ServiceLocator::get('request_stack')->getCurrentRequest();
                $sLink = $request->getSchemeAndHttpHost().$sLink;
            }
        } else {
            $sLink = $activePage->GetRealURLPlain($aParameters, $bIncludePortalLink);
        }

        return $sLink;
    }