]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove port parameter which is included in host 34181/head
authorChristopher Ng <chrng8@gmail.com>
Wed, 21 Sep 2022 19:11:38 +0000 (19:11 +0000)
committerChristopher Ng <chrng8@gmail.com>
Wed, 21 Sep 2022 19:11:38 +0000 (19:11 +0000)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
apps/files/js/filelist.js

index fff704b9283890bea0887563bdd761215b233c97..2761c3a62b25577c124c4569f3a538962b577eda 100644 (file)
                        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;
                },