I’m hoping to unwind the following hot mess of a passage in the getPage method in modx.layout.js. I’m trying to determine if non-string paths are still a thing at all in 3.x as they were at some point in 2.x.
if (action) {
if (isNaN(parseInt(action)) && (action.substr(0,1) == '?' || (action.substr(0, "index.php?".length) == 'index.php?'))) {
parts.push(action);
} else {
parts.push('?a=' + ("" + action).toLowerCase());
}
If I can confirm that only string paths are relevant now, I can vastly simplify this passage. LMK…