I have used an API call to generate a Wayfinder menu in an external application:
[shadow=red,left]$path = ’../’;
include_once($path.’modxapi.php’);
$modx = new MODxAPI();
// connect to db and load settings
$modx->connect();
$modx->getSettings();
$nav.= $modx->runSnippet(’Wayfinder’, array(’startId’ => ’0’, ’level’ => ’1’));
echo $nav;[/shadow]
It is working great except that it appears links generated by Wayfinder are relative links so that the links in another directory now reflect that directory path:
http://www.site.com/newdirectory/link.htm as opposed to
http://www.site.com/link.htm.
Does anyone have any suggestion as to how best to address this?