rendrjs/rendr — pull request #341 by ryan-rowland (2014-03-08 09:32:16+00:00)
Title: Added two potential fixes to preserve GET parameters.

## Problem
For full discussion, please see [Issue #333](https://github.com/rendrjs/rendr/issues/333).
**Summary:** When called from the serverSync method in `shared/syncer.js`, restAdapter receives an api object that contains a URL inside the path property. It then corrects the object by setting the url to the path. However, inside serverSync the query is stripped from the path and never re-applied.

## Solution

I'm proposing two solutions in this PR. They work independently of each other, but the redundancy doesn't seem to hurt:

**Solution 1** is to maintain the query string in `syncer.js`. This seems like the more appropriate place to me.
**Solution 2** is to re-append the query string in `rest_adapter.js` if api.path contains a protocol.
**Secret Option C** is do both.

I've also updated the test for `rest_adapter.js`.