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

Url parsing is broken when there are special characters #27

Open
knamburigsa opened this issue Feb 7, 2024 · 0 comments
Open

Url parsing is broken when there are special characters #27

knamburigsa opened this issue Feb 7, 2024 · 0 comments

Comments

@knamburigsa
Copy link

Parsing is not working correctly when there are special characters in the query params
When you try to parse this query param using the following logic it is not working as expected.
sfm%5BsimpleSearch%5D%5BkeywordRadio%5D=ALL&sfm%5BsimpleSearch%5D%5BkeywordTags%5D%5B0%5D%5Bkey%5D=%22at%26t%22&sfm%5BsimpleSearch%5D%5BkeywordTags%5D%5B0%5D%5Bvalue%5D=%22at%26t%22&sfm%5Bstatus%5D%5Bis_active%5D=true

Expected:
sfm: { simpleSearch: { keywordRadio: "ALL", keywordTags: [{key: "\"at&t\"", value: "\"at&t\""}], } }
Actual:
sfm: { simpleSearch: { keywordRadio: "ALL", keywordTags: [{key: "\"at", value: "\"at"}], } }
image

https://github.com/GSA/sam-layouts/blob/angular-16/layouts/src/lib/search-list-layout/search-list-layout.component.ts#L348

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

No branches or pull requests

1 participant