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; }