From 896c640c17b1309ebd15b455022d4f7d7787ff9e Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Mon, 9 Dec 2024 11:13:57 +0100 Subject: [PATCH] Quick fix for the version issue --- src/Content/Version.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Content/Version.php b/src/Content/Version.php index 4bf9af96fa..6e6e32878d 100644 --- a/src/Content/Version.php +++ b/src/Content/Version.php @@ -427,7 +427,9 @@ protected function previewTokenFromUrl(string $url): string|null { $localPrefix = $this->model->kirby()->url('base') . '/'; - if (Str::startsWith($url, $localPrefix) === false) { + // Todo: this is only a quick fix to get home page previews working again, + // we need to double-check if this is still correct + if (Str::startsWith($url, $localPrefix) === false && $url . '/' !== $localPrefix) { return null; }