diff --git a/src/bioimageio-packager.imjoy.html b/src/bioimageio-packager.imjoy.html
index 70ca160..08368b6 100644
--- a/src/bioimageio-packager.imjoy.html
+++ b/src/bioimageio-packager.imjoy.html
@@ -84,6 +84,9 @@
}
function getFileName(url){
+ if(!url.includes('/')){
+ return url;
+ }
const parts = url.split('/');
// Remove the last element 'content'
parts.pop();