From 52d113b9e100aed627f0f2a6514d8e1359045225 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Mon, 7 May 2012 12:35:02 -0400 Subject: [PATCH] Prevent extra '/' from being added to url if app is not defined --- core/js/js.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index 6588de31e9..4b0978cfb5 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+'/'; }