]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add slash to app url if not set fix oc-1169
authorBrice Maron <brice@bmaron.net>
Tue, 3 Jul 2012 21:58:08 +0000 (21:58 +0000)
committerBrice Maron <brice@bmaron.net>
Tue, 3 Jul 2012 21:58:36 +0000 (21:58 +0000)
core/js/js.js

index 7a53bb75ef5ec871d3c22b72814a4fc838aeca0a..d6483b2c22561617343b40ff5e1a7eaa1b8462db 100644 (file)
@@ -67,6 +67,8 @@ OC={
                        if(type){
                                link+= '/'+type+'/';
                        }
+                       if(link.substring(link.length-1) != '/')
+                               link+='/';
                        link+=file;
                }else{
                        link+='/';