$goToUrl = $this->modx->makeUrl($postId);
$goToUrl = $this->modx->makeUrl($postId, "", "", "full");
// $controller = $this->modx->getOption('request_controller',null,'index.php'); // $goToUrl = $controller . '?id=' . $postId;
$goToUrl = $this->modx->makeUrl($postId, $this->resource->get('context_key'), "", "full");
$goToUrl = $this->modx->makeUrl($postId, 'web', "", "full");