diff --git a/ckanext/odsh/helpers.py b/ckanext/odsh/helpers.py
index f3b5ed6f735cb61e613c30982b1e696298475364..ff6bcd3c1a7f73c54523138ca9e65e393eb89efc 100644
--- a/ckanext/odsh/helpers.py
+++ b/ckanext/odsh/helpers.py
@@ -252,7 +252,7 @@ def odsh_public_resource_url(res):
     home = config.get('ckanext.odsh.public_url')
     if res.get('url_type',None) == 'upload' and 'url' in res:
         f = urlsplit(res['url'])
-        return urlunsplit((0, 0, f[2], f[3], f[4]))
+        return urlunsplit(('', '', f[2], f[3], f[4]))
     else:
         return res['url']