replaceShortParams example

return $pathInfo;
        }

        $shopId = $context->getShopId();
        // Consider SEO URLs only if the shop ID is set, which is the case e.g. for storefront requests         if ($shopId === null) {
            return $pathInfo;
        }

        // Rewrites queries         $params = $context->getParams();
        $params = $this->queryAliasMapper->replaceShortParams($params);

        if (isset($params['sAction'])) {
            $params['action'] = $params['sAction'];
        }

        if (isset($params['sViewport'])) {
            $params['controller'] = $params['sViewport'];
        }

        $context->setParams($params);

        
Home | Imprint | This part of the site doesn't use cookies.