diff --git a/public/app/features/teams/state/actions.ts b/public/app/features/teams/state/actions.ts index cd369b86e92..001a1d1b086 100644 --- a/public/app/features/teams/state/actions.ts +++ b/public/app/features/teams/state/actions.ts @@ -149,7 +149,7 @@ export function addTeamGroup(groupId: string): ThunkResult { export function removeTeamGroup(groupId: string): ThunkResult { return async (dispatch, getStore) => { const team = getStore().team.team; - await getBackendSrv().delete(`/api/teams/${team.id}/groups/${groupId}`); + await getBackendSrv().delete(`/api/teams/${team.id}/groups/${encodeURIComponent(groupId)}`); dispatch(loadTeamGroups()); }; }