Skip to content

Commit 662bab2

Browse files
fix(ui): corrects url for publish specific url (#13922)
Fixes incorrect url string for the publish specific locale button.
1 parent fcb8b5a commit 662bab2

File tree

1 file changed

+1
-1
lines changed
  • packages/ui/src/elements/PublishButton

1 file changed

+1
-1
lines changed

packages/ui/src/elements/PublishButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export function PublishButton({ label: labelProp }: PublishButtonClientProps) {
174174
})
175175

176176
const action = `${serverURL}${api}${
177-
globalSlug ? `/globals/${globalSlug}` : `/${collectionSlug}/${id ? `${'/' + id}` : ''}`
177+
globalSlug ? `/globals/${globalSlug}` : `/${collectionSlug}${id ? `/${id}` : ''}`
178178
}${params ? '?' + params : ''}`
179179

180180
const result = await submit({

0 commit comments

Comments
 (0)