diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/js/js.js b/core/js/js.js index 4b0978cfb52..90f1207780d 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -54,11 +54,14 @@ OC={ var isCore=OC.coreApps.indexOf(app)!=-1; var link=OC.webroot; if((file.substring(file.length-3) == 'php' || file.substring(file.length-3) == 'css') && !isCore){ - link+='/?app=' + app + '&getfile='; - if(type){ - link+=encodeURI(type + '/'); + link+='/?app=' + app; + if (file != 'index.php') { + link+='&getfile='; + if(type){ + link+=encodeURI(type + '/'); + } + link+= file; } - link+= file; }else if(file.substring(file.length-3) != 'php' && !isCore){ link=OC.appswebroot; link+='/'; |