[TYPO3-english] how to remove the trailing slash from url's

Xavier Perseguers typo3 at perseguers.ch
Tue Jan 6 11:52:58 CET 2009


Hi,

> I could only find the hook  'encodeSpURL_postProc'
>  http://bugs.typo3.org/view.php?id=9976<http://bugs.typo3.org/view.php?id=9976>
> **
> Where do i find the second hook ('decodeSpURL_preProc') ?

class ux_tx_realurl extends tx_realurl {

         function encodeSpURL(&$params, &$ref) {

                 // Do something...

                 // Encode the URL
                 parent::encodeSpURL($params, $ref);
         }

         function decodeSpURL($params, &$ref) {
                 parent::decodeSpURL($params, $ref);
         }

}

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-english mailing list