From f53bb588c53c2252ac065b4ae836b1cc8ed6f7b8 Mon Sep 17 00:00:00 2001 From: ro Date: Fri, 1 Nov 2024 15:23:22 -0600 Subject: [PATCH] patch for page preview page preview from editor was not working because it was not passing the page uuid correctly so it can be identified and rendered unto the theme viewer. --- app/Http/Controllers/ThemeController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ThemeController.php b/app/Http/Controllers/ThemeController.php index 4dd59e5..e70d09a 100644 --- a/app/Http/Controllers/ThemeController.php +++ b/app/Http/Controllers/ThemeController.php @@ -62,8 +62,10 @@ class ThemeController extends Controller //if coming from theme page, grabs id of latest page if ($id == null) { $uuid = $this->getPageUUID(); + } else { + //get page by uuid + $page = $this->pages->getByUuid($id); } - $page = $this->pages->getByUuid($uuid); } $pageData = $this->sort->page($page); break;