{"action":"closed","issue":{"url":"https://api.github.com/repos/sporkmonger/addressable/issues/200","labels_url":"https://api.github.com/repos/sporkmonger/addressable/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/sporkmonger/addressable/issues/200/comments","events_url":"https://api.github.com/repos/sporkmonger/addressable/issues/200/events","html_url":"https://github.com/sporkmonger/addressable/issues/200","id":83742809,"number":200,"title":"partial expansion weirdness","user":{"login":"pezra","id":4122,"avatar_url":"https://avatars.githubusercontent.com/u/4122?v=3","gravatar_id":"","url":"https://api.github.com/users/pezra","html_url":"https://github.com/pezra","followers_url":"https://api.github.com/users/pezra/followers","following_url":"https://api.github.com/users/pezra/following{/other_user}","gists_url":"https://api.github.com/users/pezra/gists{/gist_id}","starred_url":"https://api.github.com/users/pezra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pezra/subscriptions","organizations_url":"https://api.github.com/users/pezra/orgs","repos_url":"https://api.github.com/users/pezra/repos","events_url":"https://api.github.com/users/pezra/events{/privacy}","received_events_url":"https://api.github.com/users/pezra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-01T23:27:58Z","updated_at":"2015-12-07T03:58:29Z","closed_at":"2015-12-07T03:58:29Z","body":"Consider the following example:\r\n\r\n```ruby\r\nAddressable::Template.new(\"http://example.com{?foo,bar}\")\r\n  .partial_expand(bar: \"42\").expand({}).to_s\r\n# => \"http://example.com&bar=42\"\r\n```\r\nThis results in a broken URL. It seems like the result should be `http://example.com?bar=42`. Would a PR to this effect be accepted? Would it be accepted if it resulted in a reordering of the form items when partial expansion is used? Eg,\r\n\r\n```ruby\r\nAddressable::Template.new(\"http://example.com{?foo,bar}\")\r\n  .partial_expand(bar: \"42\").expand({foo: 1}).to_s\r\n# => \"http://example.com?bar=42&foo=1\"\r\n```"}}