Skip to content

Commit

Permalink
Attach language prefix to previewPath in openSitePreviewWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdax98 committed Jul 11, 2024
1 parent f1a56b5 commit dfdf040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/documents/pages/EditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const EditPage: React.FC<Props> = ({ id, category }) => {
startIcon={<Preview />}
disabled={!pageState}
onClick={() => {
openSitePreviewWindow(pageState.path, contentScopeMatch.url);
openSitePreviewWindow(`/${scope.language}${pageState.path}`, contentScopeMatch.url);
}}
color="info"
>
Expand Down

0 comments on commit dfdf040

Please sign in to comment.