Skip to content

Commit

Permalink
use encodeURIcomponent
Browse files Browse the repository at this point in the history
  • Loading branch information
baileycash-elastic committed Feb 12, 2025
1 parent bac6b66 commit 0ba39c9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
import { syntheticsMonitorLocationQueryLocatorID } from '@kbn/observability-plugin/common';

async function navigate({ locationId }: { locationId: string }) {
const locations = encodeURIComponent(JSON.stringify([locationId]));

return {
app: 'synthetics',
path: `?locations=${[locationId]}`,
path: `?locations=${[locations]}`,
state: {},
};
}
Expand Down

0 comments on commit 0ba39c9

Please sign in to comment.