Skip to content

Commit

Permalink
[4028] Encode objectId in detail view to allow special characters in URL
Browse files Browse the repository at this point in the history
Bug: #4028
Signed-off-by: Arthur Daussy <[email protected]>
Signed-off-by: Florian ROUËNÉ <[email protected]>
  • Loading branch information
adaussy authored and frouene committed Oct 3, 2024
1 parent 145456f commit 9f1e949
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const useDetailsViewSubscription = (
const input: GQLDetailsEventInput = {
id: state.id,
editingContextId,
representationId: `details://?objectIds=[${objectIds.join(',')}]`,
representationId: `details://?objectIds=[${objectIds.map(encodeURIComponent).join(',')}]`,
};

const variables: GQLDetailsEventVariables = { input };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const useRelatedElementsViewSubscription = (
const input: GQLRelatedElementsEventInput = {
id: state.id,
editingContextId,
representationId: `relatedElements://?objectIds=[${objectIds.join(',')}]`,
representationId: `relatedElements://?objectIds=[${objectIds.map(encodeURIComponent).join(',')}]`,
};

const variables: GQLRelatedElementsEventVariables = { input };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const useRepresentationsViewSubscription = (
const input: GQLRepresentationsEventInput = {
id: state.id,
editingContextId,
representationId: `representations://?objectIds=[${objectIds.join(',')}]`,
representationId: `representations://?objectIds=[${objectIds.map(encodeURIComponent).join(',')}]`,
};

const variables: GQLRepresentationsEventVariables = { input };
Expand Down

0 comments on commit 9f1e949

Please sign in to comment.