From 05d31fa3502d71c7a265a841638505017edb6d92 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Mon, 11 Nov 2024 11:42:47 +0100 Subject: [PATCH] Remove unnecessary fallback --- src/Cms/Page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cms/Page.php b/src/Cms/Page.php index 1a1131e518..aa3c31bb72 100644 --- a/src/Cms/Page.php +++ b/src/Cms/Page.php @@ -944,7 +944,7 @@ public function previewUrl(VersionId|string $version = 'latest'): string|null default => $url }; - $uri = new Uri($url ?? $this->url()); + $uri = new Uri($url); if ($this->isDraft() === true) { $uri->query->token = $this->token();