Add a trailing slash to file links in the file tab

This avoids a HTTP 301 redirect when trying to open a file from the
file tab which was confusing reverse proxies with SSL termination.

Change-Id: If1cdf11ff6e1e2bae146307a21c1a1aea31c51ed
This commit is contained in:
David Moreau Simard 2018-06-12 10:05:04 -04:00
parent 0a37c3bdc2
commit 56582b2616
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ def generate_tree(root, paths, mock_os):
node['dataAttr'] = {
'toggle': 'modal',
'target': '#file_modal',
'load': paths[full_path]
'load': paths[full_path] + '/'
}
tree.append(node)
return tree