Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 12, 2023

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
6 checks passed
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.

None yet

2 participants