From 86b65c269a858cfba953f49d7ac86a759865fcc3 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Wed, 28 Dec 2011 13:01:36 -0500 Subject: Keep the urls pretty, decode forward slashes for newly added directories --- files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files') diff --git a/files/js/filelist.js b/files/js/filelist.js index c8720d5a435..35847e06dfe 100644 --- a/files/js/filelist.js +++ b/files/js/filelist.js @@ -40,7 +40,7 @@ FileList={ html = $('').attr({ "data-type": "dir", "data-size": size, "data-file": name}); td = $('').attr({"class": "filename", "style": 'background-image:url('+OC.imagePath('core', 'filetypes/folder.png')+')' }); td.append(''); - var link_elem = $('').attr({ "class": "name", "href": "index.php?dir="+ encodeURIComponent($('#dir').val()+'/'+name) }); + var link_elem = $('').attr({ "class": "name", "href": "index.php?dir="+ encodeURIComponent($('#dir').val()+'/'+name).replace(/%2F/g, '/') }); link_elem.append($('').addClass('nametext').text(name)); td.append(link_elem); html.append(td); -- cgit v1.2.3