I have a context called 'secure'.
There is a resource under my 'secure' context with ID 1671.
From a resource on my 'web' context, I want to run a snippet that does this:
$url = $modx->makeUrl(1671, 'secure','', 1);
The call to makeURL is returning an empty string. Peeking under the hood, I can see in modx.class.php that the context appears to be the problem.
else {
$ctx = $this->getContext($context);
}
I can verify that $context is coming through as 'secure' and there is a context called 'secure'. But $ctx comes up empty.
What am I doing wrong?