Keep the urls pretty, decode forward slashes

This commit is contained in:
Michael Gapczynski 2011-12-27 12:43:58 -05:00
parent 95b9f4ed23
commit 1cddfe8820

View file

@ -137,7 +137,7 @@ FileActions.register('all','Rename',function(){return OC.imagePath('core','actio
});
FileActions.register('dir','Open','',function(filename){
window.location='index.php?dir='+encodeURIComponent($('#dir').val())+'/'+encodeURIComponent(filename);
window.location='index.php?dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
});
FileActions.setDefault('dir','Open');