source/Core/UtilsUrl.php
public function cleanUrl($sUrl, $aParams = null)
    {
        /** @var \OxidEsales\Eshop\Core\StrRegular $oStr */
        $oStr = getStr();
        if (is_array($aParams)) {
            foreach ($aParams as $sParam) {
                $sUrl = $oStr->preg_replace(
                    '/(\?|&(amp;)?)' . preg_quote($sParam) . '=[a-z0-9\.]+&?(amp;)?/i',
                    '\1',
                    $sUrl
                );
            }
        } else {
            $sUrl = $oStr->preg_replace('/(\?|&(amp;)?).+/i', '\1', $sUrl);
        }

        return trim($sUrl, "?");
    }
public function cleanUrl($sUrl, $aParams = null)
    {
        /** @var \OxidEsales\Eshop\Core\StrRegular $oStr */
        $oStr = getStr();
        if (is_array($aParams)) {
            foreach ($aParams as $sParam) {
                $sUrl = $oStr->preg_replace(
                    '/(\?|&(amp;)?)' . preg_quote($sParam) . '=[a-z0-9\.]+&?(amp;)?/i',
                    '\1',
                    $sUrl
                );
            }
        } else {
            $sUrl = $oStr->preg_replace('/(\?|&(amp;)?).+/i', '\1', $sUrl);
        }

        return trim($sUrl, "?");
    }
public function cleanUrl ( $ sUrl , $ aParams = null ) { /** @var \OxidEsales\Eshop\Core\StrRegular $oStr */ $ oStr = getStr ( ) ; if ( is_array ( $ aParams ) ) { foreach ( $ aParams as $ sParam ) { $ sUrl = $ oStr -> preg_replace ( '/(\?|&(amp;)?)' . preg_quote ( $ sParam ) . '=[a-z0-9\.]+&?(amp;)?/i' , '\1' , $ sUrl ) ; } } else { $ sUrl = $ oStr -> preg_replace ( '/(\?|&(amp;)?).+/i' , '\1' , $ sUrl ) ; } return trim ( $ sUrl , "?" ) ; }
Removes any or specified dynamic parameter from given url.

@param string $sUrl    url to clean.
@param array  $aParams parameters to remove [optional].

@return string
Removes any or specified dynamic parameter from given url .