Skip to content

Commit f5bd38d

Browse files
committed
Make live preview url absolute
1 parent 644bcd3 commit f5bd38d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/globals/Conclusion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const Conclusion: GlobalConfig = {
1616
livePreview: {
1717
url: ({ locale }) => {
1818
const params = new URLSearchParams({
19-
path: `${locale}/conclusion`,
19+
path: `/${locale}/conclusion`,
2020
secret: PAYLOAD_SECRET,
2121
})
2222

src/globals/MainPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const MainPage: GlobalConfig = {
1616
livePreview: {
1717
url: ({ locale }) => {
1818
const params = new URLSearchParams({
19-
path: `${locale}/`,
19+
path: `/${locale}/`,
2020
secret: PAYLOAD_SECRET,
2121
})
2222

src/globals/Sculptures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Sculptures: GlobalConfig = {
1717
livePreview: {
1818
url: ({ locale }) => {
1919
const params = new URLSearchParams({
20-
path: `${locale}/sculptures`,
20+
path: `/${locale}/sculptures`,
2121
secret: PAYLOAD_SECRET,
2222
})
2323

0 commit comments

Comments
 (0)