mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Keep the urls pretty, decode forward slashes for newly added directories
This commit is contained in:
parent
349923c5b8
commit
86b65c269a
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ FileList={
|
|||
html = $('<tr></tr>').attr({ "data-type": "dir", "data-size": size, "data-file": name});
|
||||
td = $('<td></td>').attr({"class": "filename", "style": 'background-image:url('+OC.imagePath('core', 'filetypes/folder.png')+')' });
|
||||
td.append('<input type="checkbox" />');
|
||||
var link_elem = $('<a></a>').attr({ "class": "name", "href": "index.php?dir="+ encodeURIComponent($('#dir').val()+'/'+name) });
|
||||
var link_elem = $('<a></a>').attr({ "class": "name", "href": "index.php?dir="+ encodeURIComponent($('#dir').val()+'/'+name).replace(/%2F/g, '/') });
|
||||
link_elem.append($('<span></span>').addClass('nametext').text(name));
|
||||
td.append(link_elem);
|
||||
html.append(td);
|
||||
|
|
|
|||
Loading…
Reference in a new issue