From dbba23d7a64d40583fe6a787b086a8e0767f88ed Mon Sep 17 00:00:00 2001 From: Fredrik Oseberg Date: Wed, 17 Mar 2021 09:50:51 +0100 Subject: [PATCH] fix: encode tag value --- frontend/src/store/feature-tags/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/store/feature-tags/api.js b/frontend/src/store/feature-tags/api.js index f5d73f294d..e2145c3db7 100644 --- a/frontend/src/store/feature-tags/api.js +++ b/frontend/src/store/feature-tags/api.js @@ -14,7 +14,7 @@ function tagFeature(featureToggle, tag) { } function untagFeature(featureToggle, tag) { - return fetch(`${URI}/${featureToggle}/tags/${tag.type}/${tag.value}`, { + return fetch(`${URI}/${featureToggle}/tags/${tag.type}/${encodeURIComponent(tag.value)}`, { method: 'DELETE', headers, credentials: 'include',