Skip to content

Commit

Permalink
Remove unnecessary fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Nov 11, 2024
1 parent 23aba26 commit 05d31fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cms/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 05d31fa

Please sign in to comment.