fix ingress published url (#7113)

pull/7153/head
Prabhat Khera 2 years ago committed by GitHub
parent 882051cc30
commit 81f8b88541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,8 +95,7 @@ angular.module('portainer.docker').controller('KubernetesApplicationsDatatableCo
.filter(({ Host, IP }) => Host || IP)
.map(({ Host, IP, Port, Path }) => {
let scheme = Port === 443 ? 'https' : 'http';
let urlPort = Port === 80 || Port === 443 ? '' : `:${Port}`;
return `${scheme}://${Host || IP}${urlPort}${Path}`;
return `${scheme}://${Host || IP}${Path}`;
});
// Map all load balancer service ports to ip address

Loading…
Cancel
Save