Skip to content

Commit

Permalink
Fix compare translations view (#5327)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Oct 27, 2023
1 parent e857372 commit 6f01455
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/5327.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix compare translations view @sneridagh
13 changes: 11 additions & 2 deletions src/components/manage/Edit/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ import {
getSchema,
listActions,
} from '@plone/volto/actions';
import { getBaseUrl, hasBlocksData } from '@plone/volto/helpers';
import {
flattenToAppURL,
getBaseUrl,
hasBlocksData,
} from '@plone/volto/helpers';
import { preloadLazyLibs } from '@plone/volto/helpers/Loadable';

import saveSVG from '@plone/volto/icons/save.svg';
Expand Down Expand Up @@ -260,7 +264,12 @@ class Edit extends Component {

setComparingLanguage(lang, content_id) {
this.setState({ comparingLanguage: lang });
this.props.getContent(content_id, null, 'compare_to', null);
this.props.getContent(
flattenToAppURL(content_id),
null,
'compare_to',
null,
);
}

form = React.createRef();
Expand Down

0 comments on commit 6f01455

Please sign in to comment.