diff --git a/src/pagefinder/preview_entry.php b/src/pagefinder/preview_entry.php index 2ff64aa..e92671f 100644 --- a/src/pagefinder/preview_entry.php +++ b/src/pagefinder/preview_entry.php @@ -21,7 +21,7 @@ $previewmode = 1; NF::$site->loadGlobals(); -$structure = json_decode(NF::$capi->get('builder/structures/' . $entry['directory_id'])->getBody(), true); +$structure = json_decode(NF::$capi->get('builder/structures/' . $entry['directory_id'] . '/basic')->getBody(), true); NF::$site->loadPage($structure['canonical_page_id'], NULL);