Skip to content

Commit

Permalink
Fix double // in preview urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Jun 6, 2024
1 parent 74127f9 commit ff14a51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/services/LivePreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
];
Expand Down

0 comments on commit ff14a51

Please sign in to comment.