diff --git a/id-to-url.js b/id-to-url.js
index <HASH>..<HASH> 100644
--- a/id-to-url.js
+++ b/id-to-url.js
@@ -2,10 +2,13 @@ const DEFAULT_PORT = require('./port');
 
 module.exports = function idToUrl(blobId, params) {
   const port = (params && params.port) || DEFAULT_PORT;
-  const blobRef = encodeURIComponent(blobId);
-  const paramsStr = (params && params.unbox)
+  const [pureBlobId, query] = blobId.split('?');
+  const blobRef = encodeURIComponent(pureBlobId);
+  const paramsStr = query
+    ? '?' + query
+    : params && params.unbox
     ? `?unbox=${encodeURIComponent(params.unbox.toString('base64'))}.boxs`
     : '';
 
   return `http://localhost:${port}/get/${blobRef}${paramsStr}`;
-}
+};
id-to-url.js supports query params