Skip to content

Commit

Permalink
Merge branch 'main' into padding-select-facet
Browse files Browse the repository at this point in the history
  • Loading branch information
dobri1408 authored Oct 20, 2023
2 parents 6f9ec22 + ceb8be1 commit 755c0ec
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ To make changes to Volto, you need to run it from a copy of the [`plone/volto` G

### Prerequisites

You need all the requirements already mentioned in {doc}`plone:install-packages-prerequisites-label`.
You need all the requirements already mentioned in {doc}`plone:install/install-from-packages`.

### Clone the Volto repository

Expand Down
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
1 change: 1 addition & 0 deletions news/5328.documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix reference link to installation. @stevepiercy
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 755c0ec

Please sign in to comment.