Commit 5e912a5e authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixed links to files in repository

parent 164fa80c
...@@ -24,9 +24,9 @@ export const repositoryDownloadUrl = (file: RepositoryFile) => (dispatch, getSta ...@@ -24,9 +24,9 @@ export const repositoryDownloadUrl = (file: RepositoryFile) => (dispatch, getSta
return null; return null;
} }
if (file._permissions && file._permissions.isPublic) { if (file._permissions && file._permissions.isPublic) {
return getCDNServer(getState) + `/${file.uuid}`; return getCDNServer(getState) + `${file.storagePath}`;
} else { } else {
return '/proxy/uploads/d' + `/${file.uuid}`; return '/proxy/uploads/d' + `${file.storagePath}`;
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment