From 18ab816efae129a5d5410853028c212648b70c59 Mon Sep 17 00:00:00 2001 From: Bob Wezelman Date: Mon, 3 Oct 2022 13:15:38 +0200 Subject: [PATCH] Give data as a statamic values object to templates (#5) --- routes/fallback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/fallback.php b/routes/fallback.php index 8fb69c1..993cb85 100644 --- a/routes/fallback.php +++ b/routes/fallback.php @@ -1,7 +1,7 @@ url())) { +if ($entry = Statamic\Facades\Entry::findByUri(request()->path())->toResponse(request())) { if (View::exists($entry->get('template'))) { echo view($entry->get('template'), $entry); } else if (View::exists(str($entry->structure()->handle())->singular()->toString())) {