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

Fixed issue with extra ampersand being included right after question mark. #34

Merged
merged 1 commit into from Apr 3, 2021

Conversation

samunro
Copy link
Contributor

@samunro samunro commented Jul 15, 2020

An extra ampersand was being included after the question mark when appending query string parameters.

https://www.example.com?&parameter1=value1

This caused problems with requests to controller methods on the server that included optional parameters. The request did not get routed to the correct controller method and resulted in a 404.

Note that supplying values for the optional parameters was a workaround.

I extracted the logic from the two adapters that I was having problems with to a new file named adapter-core.ts (should this go elsewhere or be named differently?) and resolved the issue there. Note that there were other adapters which had the same issue. I could apply this same fix there if this looks OK.

…mark.

An extra ampersand was being included after the question mark when appending query string parameters.

https://www.example.com?&parameter1=value1

This caused problems with requests to controller methods on the server that included optional parameters. The request did not get routed to the correct controller method and resulted in a 404.

Note that supplying values for the optional parameters was a workaround.
steveschmitt added a commit that referenced this pull request Apr 3, 2021
@steveschmitt steveschmitt merged commit 6b1fb55 into Breeze:master Apr 3, 2021
@steveschmitt
Copy link
Member

Thanks, and sorry it took so long!

@steveschmitt
Copy link
Member

Your fix is included in release 2.0.9.

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