[BrowserKit] getAbsoluteUri() not working as expected with values that only contain query string parameters (eg. ?foo=bar) · Issue #19303 · symfony/symfony · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to URIs just containing hash values, I believe the result from getAbsoluteUri() should still re-use an existing, previous request when working with only a query string value. This actually gave me problems using a related project (goutte) where a redirect to a location containing only query string parameters was sending goutte to the wrong location.
I can create a PR if this is an actual issue.
The text was updated successfully, but these errors were encountered:
…ing only URIs (georaldc)
This PR was merged into the 2.7 branch.
Discussion
----------
[BrowserKit] Update Client::getAbsoluteUri() for query string only URIs
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #19303
| License | MIT
| Doc PR | -
This PR allows BrowserKit to treat a value containing only query string parameters the same way anchor/hash values are treated when passed as a URI argument to the getAbsoluteUri() method. Helps when encountering sites that force a redirect with a location header value containing only a query string.
Commits
-------
965408f Update getAbsoluteUri() for query string uris
Similar to URIs just containing hash values, I believe the result from getAbsoluteUri() should still re-use an existing, previous request when working with only a query string value. This actually gave me problems using a related project (goutte) where a redirect to a location containing only query string parameters was sending goutte to the wrong location.
I can create a PR if this is an actual issue.
The text was updated successfully, but these errors were encountered: