]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevent extra '/' from being added to url if app is not defined
authorMichael Gapczynski <GapczynskiM@gmail.com>
Mon, 7 May 2012 16:35:02 +0000 (12:35 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Mon, 7 May 2012 16:35:02 +0000 (12:35 -0400)
core/js/js.js

index 6588de31e9a3f0a1c4d164b380512ea7256ad6f5..4b0978cfb5276f30c0efe95b8765da1448d8d43a 100644 (file)
@@ -70,11 +70,13 @@ OC={
                        link+=file;
                }else{
                        link+='/';
-                       app+='/';
                        if(!isCore){
                                link+='apps/';
                        }
-                       link+=app;
+                       if (app != '') {
+                               app+='/';
+                               link+=app;
+                       }
                        if(type){
                                link+=type+'/';
                        }