diff --git a/src/Resources/assets/admin/js/bitbag/bitbag-page-slug.js b/src/Resources/assets/admin/js/bitbag/bitbag-page-slug.js index 2f09806f1..d0a8cb4d1 100644 --- a/src/Resources/assets/admin/js/bitbag/bitbag-page-slug.js +++ b/src/Resources/assets/admin/js/bitbag/bitbag-page-slug.js @@ -79,7 +79,7 @@ export class HandleSlugUpdate { async _getValidSlug(url, value) { try { - const request = await fetch(`${url}?name=${value}`); + const request = await fetch(`${url}?name=${encodeURIComponent(value)}`); const response = await request.json(); return response.slug; } catch (error) {