Skip to content

Bug fix: Slug generation for values containing ampersand symbol#486

Merged
senghe merged 1 commit intoBitBagCommerce:masterfrom
LinasRam:fix/slug-generation
Nov 12, 2023
Merged

Bug fix: Slug generation for values containing ampersand symbol#486
senghe merged 1 commit intoBitBagCommerce:masterfrom
LinasRam:fix/slug-generation

Conversation

@LinasRam
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets -
License MIT

Expected result

While creating/editing a page name in admin panel (/admin/pages), if it contains ampersand symbol (&), the generated slug should contain all typed letters and remove only ampersand (or other symbols) from it.

Example:
after

Actual result

Whole part after ampersand is cut off from slug.

Example:
before

Solution

As & is a special character in URLs, values containing it must be encoded while passing it as query parameter.

@senghe
Copy link
Member

senghe commented Nov 12, 2023

Hi @LinasRam, thanks for your PR! 🎉 I'm merging it 💪

@senghe senghe merged commit 8e91fbf into BitBagCommerce:master Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants