node v0.11.15's url module handles things a bit differently when parsing or formatting a url with params. The path field in the object returned by url.parse overrides the query field, so we need to unset path in order for the query field to be used as we need it to.
node v0.11.15's url module handles things a bit differently when parsing or formatting a url with params. The
path
field in the object returned byurl.parse
overrides thequery
field, so we need to unsetpath
in order for thequery
field to be used as we need it to.There is a ticket for this, but it seems possible that this behaviour is going to stay: https://github.com/joyent/node/issues/9070