Comment to 'Msolutions Prety Links'
  • MSolutions provided a great fix to keep "Pretty Links" functional. This has been forwarded to the UNA team Alex T⚜️ .

    Edited file: BxDolCmts.php

    Lines 475-479 were changed only. It uses a similar approach than the original file. In the original version it creates a permalink with markers and then it replaces the markers to display the link.

    In Msolutions version it replaces the markers first, then creates the permalink.

            return (
                        get_mb_substr( 
                            $sBaseUrl = BxDolPermalinks::getInstance()->permalink($this->_replaceMarkers( $this->_aSystem['base_url'] ) 
                        ) , 0, 4) != 'http'
                    ) ? BX_DOL_URL_ROOT . $sBaseUrl : $sBaseUrl;
            //This line fixes the Pretty Links issue, in the original version it creates a permalink with markers to be replaced, this one replaces the markers first and then creates the permalink. This is the correct version from our point of view.
            //        return $this->_replaceMarkers($this->_sBaseUrl);