diff --git a/changelog.html b/changelog.html
index ae642f0b42..334766cc2e 100644
--- a/changelog.html
+++ b/changelog.html
@@ -58,6 +58,9 @@ Upcoming changes
Added a way to show avatar images on user pages.
(issue 7494)
+
+ HTTPS on port 80 makes Jenkins infer his URI incorrectly
+ (issue 11151)
diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java
index cbf1b8ffd3..741c02fa1e 100644
--- a/core/src/main/java/hudson/Functions.java
+++ b/core/src/main/java/hudson/Functions.java
@@ -647,7 +647,7 @@ public class Functions {
StringBuilder buf = new StringBuilder();
buf.append(req.getScheme()).append("://");
buf.append(req.getServerName());
- if(req.getLocalPort()!=80)
+ if(! (req.getScheme().equals("http") && req.getLocalPort()==80 || req.getScheme().equals("https") && req.getLocalPort()==443))
buf.append(':').append(req.getLocalPort());
buf.append(req.getContextPath()).append('/');
return buf.toString();