Another funny things that I found out
here is the code that I use for testing
echo "documentIdentifier: ".$modx->documentIdentifier."<br />";
echo "virtualDir: ".$modx->virtualDir."<br />";
echo "config(use_alias_path): ".$modx->config['use_alias_path']."<br />";
echo "method: ".$modx->documentMethod."<br />";
echo "method (function call): ".$modx->getDocumentMethod()."<br />";
Here is the result without any SEF being turned on
documentIdentifier: 54
virtualDir:
config(use_alias_path): 0
method: id
method (function call): id
Here is the result without any alias or alias path being turned on, so using friendly url
documentIdentifier: 54
virtualDir:
config(use_alias_path): 0
method: id
method (function call): alias
Here is the result with alias turn on, but not the alias path
documentIdentifier: 54
virtualDir:
config(use_alias_path): 0
method: id
method (function call): alias
Here is the result from everything being turned on
documentIdentifier: 54
virtualDir:
config(use_alias_path): 1
method: id
method (function call): alias
What do you think about the result?
I’m investigating the code right now, hope I found something usefull to figure out the reason behind this.