diff --git a/base/src/main/java/uk/ac/ebi/atlas/web/ApplicationProperties.java b/base/src/main/java/uk/ac/ebi/atlas/web/ApplicationProperties.java
index <HASH>..<HASH> 100644
--- a/base/src/main/java/uk/ac/ebi/atlas/web/ApplicationProperties.java
+++ b/base/src/main/java/uk/ac/ebi/atlas/web/ApplicationProperties.java
@@ -98,7 +98,7 @@ public class ApplicationProperties {
      */
     @Deprecated
     public static String buildServerURL(HttpServletRequest request) {
-        String spec = request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
+        String spec = request.getServerName() + (request.getServerPort() != 80 ? ":" + request.getServerPort() : "") + request.getContextPath();
         if (request.isSecure() || request.getServerName().startsWith("www.") || request.getServerName().startsWith("wwwdev.")) {
             spec = "https://" + spec;
         } else {
Good merge of: Don’t include the default HTTP port in the server URL