summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2012-05-07 12:35:02 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2012-05-07 12:35:02 -0400
commit52d113b9e100aed627f0f2a6514d8e1359045225 (patch)
treeb15b0dc9eb0b6c7dd92c6f24cd1e79974ec9c405 /core/js
parentda4688d804717599213e2a7a66c24e5b98edca17 (diff)
downloadnextcloud-server-52d113b9e100aed627f0f2a6514d8e1359045225.tar.gz
nextcloud-server-52d113b9e100aed627f0f2a6514d8e1359045225.zip
Prevent extra '/' from being added to url if app is not defined
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+'/';
}