diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-09-21 19:11:38 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-09-21 19:11:38 +0000 |
commit | 1f786f6bcc4aa0102cc280ff1e7da2b36dd5e445 (patch) | |
tree | 6fe246b2729c1312e9a5c017f5f4b054c47ffc3b /apps/files | |
parent | 09b777672019684872279633daafdf6734c44901 (diff) | |
download | nextcloud-server-1f786f6bcc4aa0102cc280ff1e7da2b36dd5e445.tar.gz nextcloud-server-1f786f6bcc4aa0102cc280ff1e7da2b36dd5e445.zip |
Remove port parameter which is included in host
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index fff704b9283..2761c3a62b2 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2811,7 +2811,7 @@ var scheme = 'nc://'; var command = 'open'; var uid = OC.getCurrentUser().uid; - var url = scheme + command + '/' + uid + '@' + window.location.host + (window.location.port ? `:${window.location.port}` : '') + OC.encodePath(path); + var url = scheme + command + '/' + uid + '@' + window.location.host + OC.encodePath(path); window.location.href = url; }, |