Skip to content

Commit

Permalink
Merge pull request #486 from LinasRam/fix/slug-generation
Browse files Browse the repository at this point in the history
Bug fix: Slug generation for values containing ampersand symbol
  • Loading branch information
senghe authored Nov 12, 2023
2 parents da3133b + 6bad4ff commit 8e91fbf
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 8e91fbf

Please sign in to comment.