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
I tried to use a custom query string of ?foo (with a name but no value) but when I query it using GraphQL all parameters without a value get removed, even if I also add a hash (e.g. ?foo&bar=1#hash becomes ?bar=1#hash).
I tried to use a custom query string of
?foo
(with a name but no value) but when I query it using GraphQL all parameters without a value get removed, even if I also add a hash (e.g.?foo&bar=1#hash
becomes?bar=1#hash
).I believe the problem comes from the
Url::getQuery()
method defined in the utils package: https://github.com/sebastian-lenz/craft-utils/blob/main/src/models/Url.php#L136-L139From my reading of RFC 3986 I don't see that a value is required. It does say this which implies that it's optional:
The text was updated successfully, but these errors were encountered: