diff --git a/CHANGELOG.md b/CHANGELOG.md index 5065397..5ab1714 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.2.2 - 2024-06-06 +### Fixed +- Fix double `//` in preview urls + ## 4.2.1 - 2023-10-19 ### Fixed - Fix link field not caching element details on save diff --git a/src/services/LivePreview.php b/src/services/LivePreview.php index fa2a6bf..0eb1106 100644 --- a/src/services/LivePreview.php +++ b/src/services/LivePreview.php @@ -58,7 +58,7 @@ public function onSectionInit (Event $event): void $section->previewTargets = [ [ 'label' => 'Preview', - 'urlFormat' => '{site.baseUrl}/api/preview?uid={canonicalUid}&x-craft-live-preview=1&site={site.handle}', + 'urlFormat' => '{site.baseUrl}api/preview?uid={canonicalUid}&x-craft-live-preview=1&site={site.handle}', 'refresh' => true, ] ];