--- canonical.php	2010-12-09 14:28:17.000000000 +0200
+++ canonical.php	2010-12-09 14:29:03.000000000 +0200
@@ -44,6 +44,7 @@
 		// build the URL in the address bar
 		$requested_url  = is_ssl() ? 'https://' : 'http://';
 		$requested_url .= $_SERVER['HTTP_HOST'];
+		$requested_url .= $_SERVER['HTTP_PORT'] == '80' ? '' : ':'.$_SERVER['HTTP_PORT'];
 		$requested_url .= $_SERVER['REQUEST_URI'];
 	}
 