On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Quote from: juliolopez78 at Mar 19, 2014, 05:23 PM
    QuickManager issue aside, are you saying that in 1.0.14 or whatever is next, www.domain.tld/45 won't work? or will you add an option to the MODX config settings to allow this kind of url?
    An option to turn it on or off would be great. I somehow doubt that I'm the only one out there that uses that format of url with MODx.

    You're not! And this is quick fix (maybe not the sanest one, after Vagrant+CentOS docs and stepping through get/cleanDocumentIdentifier() functions gave me a terrible headache):

    Change //@TODO in this line:
    https://github.com/modxcms/evolution/blob/develop/manager/includes/document.parser.class.inc.php#L1577

    with the following code:
    					          if (is_numeric($alias) && !empty($this->aliasListing[intval($alias)])) {
                          $this->documentIdentifier = intval($alias);
                        } else {
    

    wrapping $this->sendErrorPage(); in closing else afterwards:
                        $this->sendErrorPage();
                    }