Make the call to the server use the same url as requested
Merge pull request #899 from lonelyplanet/remy-controller_json

Controller fix.