Skip to content

Commit

Permalink
Revert "Encode searchId as it tends to be decoded after adds into url (
Browse files Browse the repository at this point in the history
…opensearch-project#8530)"

This reverts commit 9eae148.
  • Loading branch information
zhyuanqi committed Oct 10, 2024
1 parent 2ffb11f commit 397722e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions changelogs/fragments/8530.yml

This file was deleted.

1 change: 0 additions & 1 deletion src/plugins/visualizations/public/wizard/new_vis_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ class NewVisModal extends React.Component<TypeSelectionProps, TypeSelectionState
}

params = [`type=${encodeURIComponent(visType.name)}`];
searchId = encodeURIComponent(searchId || '');

if (searchType) {
params.push(`${searchType === 'search' ? 'savedSearchId' : 'indexPattern'}=${searchId}`);
Expand Down

0 comments on commit 397722e

Please sign in to comment.