diff options
-rw-r--r-- | quoins/openid_controllers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quoins/openid_controllers.py b/quoins/openid_controllers.py index efb65c5..2d15c7e 100644 --- a/quoins/openid_controllers.py +++ b/quoins/openid_controllers.py | |||
@@ -104,7 +104,9 @@ class OpenIDController(TGController): | |||
104 | 104 | ||
105 | def absolute_url(self, obj): | 105 | def absolute_url(self, obj): |
106 | port = tg.config.get('server.webport', '') | 106 | port = tg.config.get('server.webport', '') |
107 | if port: | 107 | if port == '80': |
108 | port = '' | ||
109 | else: | ||
108 | port = ':'+port | 110 | port = ':'+port |
109 | return 'http://%s%s%s'%(tg.config.get('server.webhost'), port, | 111 | return 'http://%s%s%s'%(tg.config.get('server.webhost'), port, |
110 | self.url(obj)) | 112 | self.url(obj)) |