Skip to content

Commit

Permalink
Fixes slug generation for values containing ampersand symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
LinasRam authored and lramanauskas committed Oct 24, 2023
1 parent 3d8e53a commit 6bad4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/assets/admin/js/bitbag/bitbag-page-slug.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6bad4ff

Please sign in to comment.