summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 6588de31e9a..4b0978cfb52 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -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+'/';
}